I have this code:
for (int i = 0; i < 9; i++) {
if (i <= 3 || i% 3 == 0) {
System.out.println(i);
}
}
The output in LogCat is correct:
0
1
2
3
6
But when I change System.out.println(i);
for System.out.println("hi");
or any other object or number the output in LogCat is:
hi
hi
It should be a 5 xhi
list. Is this a bug in Android or is it my system? Thanks in advance.