I have an array and I'm trying to compare letter by letter to another array. the .equals accepts an object so in order to compare I'm trying to swith one element of the array to a string and then to compare it. I would appreciate if you can help me since I'm a beginner
my code:
String let;
let=new String (toString(letters));
if (bef[x].equals(let))
break;
how can I get it to compare bef[x] to letters
my code:
String let;
let=new String (toString(letters));
if (bef[x].equals(let))
break;
how can I get it to compare bef[x] to letters