Java.Util.Scanner.NextLine Method
Returns the skipped input and advances the Scanner to the beginning of the next line.

Syntax

[Android.Runtime.Register("nextLine", "()Ljava/lang/String;", "")]
public string NextLine ()

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif the Scanner is closed.
Java.Util.NoSuchElementExceptionif no line can be found, e.g. when input is an empty string.

Remarks

Returns the skipped input and advances the Scanner to the beginning of the next line. The returned result will exclude any line terminator. When searching, if no line terminator is found, then a large amount of input will be cached. If no line at all can be found, a NoSuchElementException will be thrown.

[Android Documentation]

Requirements

Namespace: Java.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1