Nested While Loop Syntax In Java