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.
    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();
      }
    }
How can get a random word from the variable, "words", and calculate it's length?
Please keep in mind, I'm not the best at coding Java.
 
     
     
     
     
    