mirror of
https://github.com/tiennm99/lombok.git
synced 2026-06-05 20:13:24 +00:00
19 lines
282 B
Java
19 lines
282 B
Java
public class ForLoop {
|
|
public static void main(String[] args) {
|
|
// before loop
|
|
for (int i = 0; i < 10; i++) {
|
|
// start of block
|
|
System.out.println(i);
|
|
// end of block
|
|
}
|
|
// after loop
|
|
}
|
|
|
|
{
|
|
int i;
|
|
for (i = 0; i < 10; i++) {
|
|
System.out.println(i);
|
|
}
|
|
}
|
|
}
|