doPrompt({'a','t','q'},"Test");
I get a illegal start of expression error starting with the { character.
Here is the method being called:
public static char doPrompt(char[] validCharacterValues, String prompt) {
do {
System.out.print(prompt);
Scanner keyboardMonster = new Scanner(System.in);
String usersInput = keyboardMonster.nextLine().toLowerCase();
if (arrayContains(validCharacterValues,usersInput.charAt(0)))
return usersInput.charAt(0);
} while (true);
}