My question is: is there any possibility of listing a set of values to search for in an if-statement? Or is there a better way of doing this? for example:
Scanner input=new Scanner (System.in);
String searchTerm=input.next();
if(input==1d,2d,3d,4d,5c,1a,3x,5c,6b){
// Do stuff
}
EDIT: very sorry, I did not realise my question wasn't completed, and even kind of wrong... Gosh. Fixed now.