this is basically the same thing i got to compare numbers from user input, with "int", but for some reason it doesnt work for words in an array of strings even when it is correct. its unfinished, i just want to make it compare properly.
case 2:
cell = (int)((Math.random() * 59) + 1);
System.out.println(englishNumbers[cell]);
System.out.println("what is the number? >");
String w = in.nextLine();
if(w != frenchNumbers[cell])
{
System.out.println("That is incorrect");
numChoice(2);
}
else
{
System.out.println("That's correct");
numChoice(2);
}
break;