title: java jar accept multiple arguments on runtime
body: <p>I have a java jar that need to accept about 3 arguments but I want to pass them as a Q&amp;A type like the following:
  1st step run java jar</p>
  
  <pre><code>java -jar myTest.java
  </code></pre>
  
  <p>2nd step ask questions and wait for answers:</p>
  
  <pre><code>Hi, how old are you?
  </code></pre>
  
  <p>I type my answer that accepts it and then ask the 2nd question:</p>
  
  <pre><code>nice! what is your name?
  </code></pre>
  
  <p>type my second answer and the get a third question and so on. how do I achieve this? I know that I can pass arguments to main but what I found is that I have to pass them all when I first run the jar not like what I'm looking for. 
  Any ideas?
  Thanks!</p>