Update javaapplication1.java

funcion