So the while loop I am trying to use is:
while( type != "EXIT" )
type = input.next();
the problem is that typing in EXIT doesn't end the loop like I want it to. I also tried input.nextLine(); but neither of them work. The loop is being used to fill an ArrayList so the number of elements can change based on how many they want. What am I doing wrong, or what alternatives do I have?
EDIT: nevermind I think I figured it out. seems I need to use !type.equals("EXIT")