I have an assignment due for my java course and I cant figure out how to print out a random character from a string the user has input, can anyone lend a hand?
Currently I have some code that looks like this
Scanner keyboard = new Scanner(System.in);
String input = keyboard.next();
Random random = new Random();
char index = random.charAt(input.length());
System.out.println("Here is a random Character ");
System.out.println(index);