This Applet gives you the condition structure of a java code. It shows all the conditions labeled with the order in the code and you can see which of them are nested.
First, you have to press the button "Select" to select the java code.
Then, the program returns on the left the source code selected and on the right the program's structure.