title: How to turn user input into an array
body: <p>I'd like to turn user input into a string array, and then edit that array for key words to change them, however I don't know how to do this and immediately ran into problems of trying to solve how to code this without an array going out of bounds. </p>
  
  <p>The only code I have is this:</p>
  
  <pre><code>import java.util.*;
  
  class FilterTest{ 
  
      public static void main (String[] args){
          Scanner scan = new Scanner (System.in);
          //String[] inputMessage = new String (); I don't know how to do the length here.
          input.nextString();
          inputMessage=input.nextString;
      }
  }
  </code></pre>