title: how would one get an input horizontally in java using scanner class to count the string input
body: <p>i am not very skilled at programming and was wondering how would one get a input from a user horizontally instead of vertical?: basically like this.
  abcd instead of</p>
  
  <pre><code>a
  b
  c
  d
  </code></pre>
  
  <p>"Just to clear up i wanted to count how many string letters they typed,
  i realized that i could use one scanner class but i wanted to see if they inputted nth        number of string and limit them from entering more!!!!"</p>