sum = 0; |
x = 0; |
x = 0; |
x = 0.33333333; |
sum = 0; |
x = 1; |
int a = 5, b = 3;
for (int i = 0; i < 4; i++) {
a += i;
switch (a % 4) {
case 0: System.out.println("zero");
break;
case 1: System.out.println("one");
case 2: System.out.println("two");
break;
default: System.out.println("three");
break;
}
}
stdin is a Scanner object.row and col are ints holding the number
of rows and columns, respectively.
For example, if row = 5 and col = 8, the following
should be printed out:******** * * * * * * ********
public static int countLower(String str) {