Hey guys
This is probably a very simple question, but i can’t seem to get the just of it.
String sentence = “Hello\nWorld”;
now i want to remove the last line of the string ("\nWorld");
i.e. sentence -= "\n"
but then it says
"operator - cannot be applied to java.lang.String,java.lang.String"