Update While.java

Refactor