0

I want from user to input a word and then it returns a random word using the input characters, does it need a for-loop?
I kinda stuck here...

public static void main(String[] args) {


    Random rand = new Random();
    Scanner input = new Scanner(System.in);

    System.out.println("Enter a word: ");

    String temp = input.nextLine();
    char[] myWord = temp.toCharArray();

    for(int i=0;i<myWord.length;i++) {

    }

}
Armin
  • 19
  • 1

0 Answers0