title: Java: Add numbers to a String
body: <p>Hi im trying to add a number (in this case "1") to a String E everytime someone presses a button in the GUI. So at first the String E is just blank (String E = "") but if someone presses the button once it becomes 1 (String E = "1"). If the button gets pressed multiple times a 1 should be added for every press. My current code is:</p>
  
  <pre><code>public void handle(ActionEvent event) {
       String E = (Z + "1");
       String Z = E;
       System.out.println(E);
  }
  </code></pre>
  
  <p>(The Strings are set to E = "" and Z = "") But everytime I press the Button it just puts out a '1'. I'm not sure what I'm doing wrong....</p>