Working with some legacy code, and encountered this:
File file = new File()
File[] files = file.listFiles();
for(int i=0;i<files.length;i++)
try {
{
System.out.println("Do stuff");
}
} catch (Exception e) {
e.printStackTrace();
}
it compiles and runs, but I don't know which loop is inside the other, or why it works.