Update Application.java

uncommented core of loop