Scanner.HasNextLine Property

Definition

Returns true if there is another line in the input of this scanner.

public bool HasNextLine { [Android.Runtime.Register("hasNextLine", "()Z", "")] get; }
[<get: Android.Runtime.Register("hasNextLine", "()Z", "")>]
member this.HasNextLine : bool

Property Value

true if and only if this scanner has another line of input

Attributes

Exceptions

if this Scanner is closed.

Remarks

Returns true if there is another line in the input of this scanner. This method may block while waiting for input. The scanner does not advance past any input.

Java documentation for java.util.Scanner.hasNextLine().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to