Scanner class:A class in Java that allows users to read input from various sources using methods like nextDouble(). It provides functionality for parsing primitive types and strings.
hasNextDouble(): A method in Java's Scanner class that checks if there is another token available in the input source and returns true if it is a double.
parseFloat(): A method in Java's Float class that converts a string representation of a floating-point number into its corresponding float value.