While loop java style sheet