The assignment operator in Java evaluates to the assigned value (like it does in, e.g., c). So here, readLine()
will be executed, and its return value stored in line
. That stored value is then checked against null
, and if it’s null
then the loop will terminate.
More Related Contents:
- How to get a substring through regex in java android?
- Java File Handling DisplayOnConsole
- How to solve expression with /=
- Why don’t Java’s +=, -=, *=, /= compound assignment operators require casting?
- How to parse a mathematical expression given as a string and return a number? [duplicate]
- Shortcut “or-assignment” (|=) operator in Java
- Why doesn’t Java have compound assignment versions of the conditional-and and conditional-or operators? (&&=, ||=)
- JPQL: Receiving a Collection in a Constructor Expression
- What’s the difference between # , % and $ signs in Struts tags?
- Modifying a text file in a ZIP archive in Java
- Why don’t Java’s +=, -=, *=, /= compound assignment operators require casting long to int?
- How to calculate remaining days of the month? [duplicate]
- While you save a file in .csv,how to remove the hyphen in the file name
- Android: How to stretch an image to the screen width while maintaining aspect ratio?
- How to solve the “Double-Checked Locking is Broken” Declaration in Java?
- Variable naming conventions in Java
- How to get response body using HttpURLConnection, when code other than 2xx is returned?
- How to programmatically lock screen in Android? [duplicate]
- How to implement setOnScrollListener in RecyclerView
- Breaking out of a for loop in Java [closed]
- How to handle requests that includes forward slashes (/)?
- LocalDate to java.util.Date and vice versa simplest conversion? [duplicate]
- Choosing Java vs Python on Google App Engine
- Is gzip format supported in Spark?
- How do I parse EDIFACT in Java? [closed]
- android.database.sqlite.SQLiteException: no such column
- When do I have to change the serialVersionUID?
- Identifying file type in Java
- Encrypt and decrypt a String in java
- How can I give my Java application a unique process name?