title: Read next word in java
body: <p>I have a text file that has following content:</p>
  
  <pre><code>ac und
  accipio annehmen
  ad zu
  adeo hinzugehen
  ...
  </code></pre>
  
  <p>I read the text file and iterate through the lines:</p>
  
  <pre><code>Scanner sc = new Scanner(new File("translate.txt"));
  while(sc.hasNext()){
   String line = sc.nextLine();       
  }
  </code></pre>
  
  <p>Each line has two words. Is there any method in java to get the next word or do I have to split the line string to get the words?</p>