nextboolean()
扫描器类nextBoolean()方法 (Scanner Class nextBoolean() method)
nextBoolean() method is available in java.util package.
nextBoolean()方法在java.util包中可用。
nextBoolean() method is used to scans the next token of the input scanned into a boolean value.
nextBoolean()方法用于将扫描的输入的下一个标记扫描为布尔值。
nextBoolean() method is a non-static method, it is accessible with the class object only and if we try to access the method with the class name then we will get an error.
nextBoolean()方法是一个非静态方法,只能通过类对象访问,如果尝试使用类名称访问该方法,则会收到错误消息。
nextBoolean() method may throw an exception at the time of returning a Boolean value.