Udostępnij za pośrednictwem


Scanner.NextLine Method

Definition

Advances this scanner past the current line and returns the input that was skipped.

[Android.Runtime.Register("nextLine", "()Ljava/lang/String;", "")]
public string? NextLine ();
[<Android.Runtime.Register("nextLine", "()Ljava/lang/String;", "")>]
member this.NextLine : unit -> string

Returns

the line that was skipped

Attributes

Exceptions

if the Scanner is closed.

if no line can be found, e.g. when input is an empty string.

Remarks

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

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