Update Application.java

updated for total and clear items