I have this line of code from a tutorial
while((line = bufferedReader.readLine()) != null)
It worked fine but i don't get the concept.
Does Java asign a value to the operation itself line = bufferedReader.readLine()?
After that looks like:
line and line = bufferedReader.readLine() has the same value?.
Trying to get it i tested
  String a = "Not null";
  String b;
  System.out.println( (b = a) );
The output was: Not null.
The question is. The operaton of assigning itself has (At least for an instant) the same value of whatever is at the right of "="?.
line = bufferedReader.readLineis not a value, it's an assignment. What happens is that the readLine method is called, the return value is assigned toline, and after that, the result (the line) is checked to be not null. (And a bit offtopic: I don't think this question deserves the downvotes, it's not a crazy question to ask for some explanation)