I just tested it that way and still doesn't work. Btw, System.out.println can print integers because I can make application like this:
public class Apples {
public static void main(String args[]) {
int [] numbers = {1,2,3,4};
for(int x = 0; x <4;x++) {
System.out.println(numbers[x]);
}
}
}