blob: 363aeeff3bd262b7eebc4ac5fce37ba0ab4e0a09 (
plain)
1
2
3
4
5
6
7
8
9
|
public class VarInFor {
public void enhancedFor() {
int[] list = new int[] {1, 2};
for (int shouldBeInt : list) {
System.out.println(shouldBeInt);
int shouldBeInt2 = shouldBeInt;
}
}
}
|