I am quite new in programming. I have a misunderstanding with Strings in Java. As I know that Strings in java immutable. That means it can not be changed, but I have seen lot's of examples of readings file string by string and currentString always was changed in every iterations. Please help me to understand why it's possible and write. Example from URL Java read large text file with separator
BufferedReader br = null;
try {
String sCurrentLine;
br = new BufferedReader(new FileReader("C:\\testing.txt"));//file name with path
while ((sCurrentLine = br.readLine()) != null) {
String[] strArr = sCurrentLine.split("\\+");
for(String str:strArr){
System.out.println(str);
}
}
} catch (IOException e) {
e.printStackTrace();
} finally {
try {
if (br != null)br.close();
} catch (IOException ex) {
ex.printStackTrace();
}
}