Hello, I am a beginner and can not understand this:
String s = "Skakal pes pres oves";
s = s.substring(0, 6);
String concat = s + " pes";
It is an example code from a site. From what I know is, that the content of an immutable string can not be changed. But doesn't the s = s.substring(0, 6) changed it? Or am I misunderstanding this?