You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System.out.print("\nSelect an option (method) and then press Enter:\n1. Show this capital\n2. Show this regions' centers and the total number of regions\n3. Compute this square\n4. Exit!\n");
45
+
int[] mem1 = newint[java.lang.Math.abs(memory1)];
46
+
memory1 *= (choice == 5) ? 100 : 1;
47
+
if (choice != 5) // in console select option 5 just for testing out of memory
48
+
while (true) { // just input control
49
+
p = (newjava.util.Scanner(System.in)).next();
50
+
if (reg(p)) {
51
+
choice = Integer.valueOf(p);
52
+
break;
53
+
} else {
54
+
System.out.println("Enter only one natural number between 1 and 5:");
0 commit comments