Edit: the problem turned out to be caused by my closing System.in in a previous part of the program, thereby making it unusable later on.
I'm trying to create a loop for user input but it's not functional...
Here's what I've got:
Scanner userkey = new Scanner(System.in);
System.out.println("Enter commands");
while(userkey.hasNext()){
if (userkey.next().equals("exit")){
System.out.println("EXIT!!!!");
break;
}
System.out.println("In while loop test");
}
I guess userkey.hasNext() is return false for some reason...