title: Grab Words from .txt file - Java
body: <p>I have been tasked to grab 100 words, at random, from a dictionary.txt file. I have been able to read to the file using a scanner, populate an array based on each new line (which would separate the words + definitions to a single element each) and then formatted it to remove the brackets. 
  However, now I need to figure out how to grab just the first word from each array element, possibly by using a regex or the fact that it is the first word in each element being ended by a space. </p>
  
  <p>My question is how would one go about grabbing just the first word out of every array element, or, as mentioned below, grab the first word per line. </p>