Java.Util.Scanner.NextBoolean Method
Returns the next token as a boolean.

Syntax

[Android.Runtime.Register("nextBoolean", "()Z", "")]
public bool NextBoolean ()

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif this Scanner has been closed.
Java.Util.NoSuchElementExceptionif input has been exhausted.
Java.Util.InputMismatchExceptionif the next token can not be translated into a valid boolean value.

Remarks

Returns the next token as a boolean. This method will block if input is being read.

[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