title: Making a word scrambler in java
body: <pre><code>import java.util.Scanner;
  
  public class WordScrambler 
  {
      public String prefix, inner, postfix, newword;
  
  
      public static void main(String[] args) 
      {
          Scanner sc = new Scanner (System.in);
          String words = sc.nextLine();
          System.out.println(words);
      }
  
  
  public void Scrambler()
  
  }
  
  String [] words = words.split(" ");
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p>I'm not really understanding how to get my variable "words" into my scramble method so i can split each word that i put into seperate strings, am i just declaring a new array words when i do this? How do i grab that variable from above. Also, my system.out.println is just checking to see if my scanner worked. Or am i doing it right and is it actually splitting the words?</p>