Update App.java

break from inner loop once t is found.