blob: a04d0f0c7d06f94e6f85ed6ce23f38c9e4f7352d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
public class ValInFor {
{
final int x = 10;
final int x2 = -1;
final java.lang.String a = "Hello";
for (final int y = x, z = x2; y < 20; y++) {
final int q = y;
final int w = z;
final java.lang.String v = a;
}
}
/* public void enhancedFor() {
java.util.List<String> list = java.util.Arrays.asList("Hello, World!");
for (val shouldBeString : list) {
System.out.println(shouldBeString.toLowerCase());
val shouldBeString2 = shouldBeString;
}
}*/
}
|