I've never seen a method inside a method used inside of Java..

To repeat until a condition isn't satisfied, use a while loop or a do while loop. See Java while loops for more information on using...