title: Java: populating Scanner with default value on Scanner.nextLine();
body: <p>I am writing a java program that runs a loop and keeps asking the user for input. The program then does a bunch of things with the string, and asks for another string and repeats.</p>
  
  <p>The issue is that many strings are very similar, so i would like to populate the prompt with the input from the last time in the loop. For instance: If the user enters a value as follows:</p>
  
  <pre><code>Enter the SKU Number: APE-6603/A
  </code></pre>
  
  <p>... Then the next time it asks for an SKU, it will wait till the user presses enter as normal, but be ready with the last value before the user even types anything:</p>
  
  <pre><code>Enter the SKU Number: APE-6603/A
  </code></pre>
  
  <p>... And the user can make simple changes very fast like replace the /A with /B and press enter! If the string that holds the user input is called "lookFor", is there a way to populate the prompt with this value in Java? It would be VERY useful!</p>
  
  <p>Thanks!</p>