title: How do I get a random word from a string?
body: <p>I want to create a hangman game in Java, but I'm unsure on how to set the whole thing up. I am working on a system that the more letters they have, they have a less chance of appearing on the hangman puzzle.</p>
  
  <pre><code>    import java.ultil.Scanner;
      public class Hangman {
        public static void main(string[]args); // Let's try a main?
        scr = newScanner(system.in); // used for keyboard input
        string words = "Hi:Bye:Hello:Cheese:Puppies";
        int length = words.length();
        }
      }
  </code></pre>
  
  <p>How can get a random word from the variable, "words", and calculate it's length?</p>
  
  <p>Please keep in mind, I'm not the best at coding Java.</p>