nextfloat
扫描器类的nextFloat()方法 (Scanner Class nextFloat() method)
nextFloat() method is available in java.util package.
nextFloat()方法在java.util包中可用。
nextFloat() method is used to scans the next token of the input scanned into a float value.
nextFloat()方法用于将扫描的输入的下一个标记扫描为浮点值。
nextFloat() 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.
nextFloat()方法是一个非静态方法,只能通过类对象访问,如果尝试使用类名称访问该方法,则会收到错误消息。
nextFloat() method may throw an exception at the time of returning float value.
在返回float值时,