mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 12:14:31 +00:00
10 lines
199 B
Java
10 lines
199 B
Java
public class VarInFor {
|
|
public void enhancedFor() {
|
|
int[] list = new int[] {1, 2};
|
|
for (int shouldBeInt : list) {
|
|
System.out.println(shouldBeInt);
|
|
int shouldBeInt2 = shouldBeInt;
|
|
}
|
|
}
|
|
}
|