title: Display Park Name and Time outside Loop
body: <p>How do I display the <code>parkName</code> and <code>time</code> outside the for loop?</p>
  
  <pre class="lang-java prettyprint-override"><code>for(int i=1; i&lt;=5; i++) {
      System.out.print("\n\nEnter park name: ");
      String parkName = input.nextLine();
  
      System.out.print("Enter run time: ");
      String runTime = input.nextLine();
  
      //convert to double the user input which was a string
      //create new variable for time as double
  
      Double time = Double.parseDouble(runTime);
      parkRunner.recordNewRuns(parkName, time);
  }
  </code></pre>