title: Adding unlimited integer user input to list and displaying sum in java
body: <p>I'm trying to get a user to input how long it took them to complete a task in minutes. Depending on if the user repeats the task or not, I want the input to add up to a final integer that shows how long the user took to complete all of the tasks( in this case the same task over and over.) Here's my code so far:</p>
  
  <pre><code>public static void main(String[] args) {
      Scanner entree = new Scanner(System.in);
      int tpsresolution_difficile = 0;
      System.out.println("                                                              ");
      System.out.println("                                                              ");
      System.out.println("         How long did it take you to finish the task?         ");
      System.out.println("                                                              ");
      System.out.println("                                                              ");
      tpsresolution_difficile = entree.nextInt();
  }
  </code></pre>
  
  <p>Hope you can help, any input is appreciated!</p>