for (int i = 0; i < 10; i++) {
System.out.println(i)
for (int j = 1; j < 3; j++)
System.out.println("It's nested for loop");
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter