import java.util.Scanner; public class K { int goodData; int num; public K(int num) { this.num = num; } public boolean getGoodData() { if(num > 10) return true; return false; } public int getNum() { return num; } } class Ktester { public static void main (String [] args) { Scanner input = new Scanner(System.in); do { System.out.println("enter a number: "); int num = input.nextInt(); K dido = new K(num); } while(dido.num); } }

Tuesday, November 13, 2018
0 Response to Code - Syntax Highlighter
Post a Comment