I'm currently reading a code and i found a method starting like this :
BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
String userInput;
while ((userInput = stdIn.readLine()) != null) {
}
Can someone explain me the condition while ? That a = b != c seems weird to me.