mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-28 00:26:04 +00:00
11 lines
218 B
Java
11 lines
218 B
Java
import lombok.var;
|
|
|
|
public class VarInFor {
|
|
public void enhancedFor() {
|
|
int[] list = new int[] {1, 2};
|
|
for (var shouldBeInt : list) {
|
|
System.out.println(shouldBeInt);
|
|
var shouldBeInt2 = shouldBeInt;
|
|
}
|
|
}
|
|
} |