This question has already been answered:
- How does the operator == 1 answer
- How to compare strings in java? 2 answers
My code
String Uy = "Terop"; for (String s : Uy.split("")) { if (s == "e") { continue ; } System.out.println(s); } I want him to filter the letters e. (that is, it did not execute the output and returned to the beginning of the loop. I use the continue operator (as I do in python), it still does not return to the beginning of the loop and outputs.
equals. Operator==compares the links, but they are different here, we sit down and do not work. - Yuriy SPb ♦