Scanner does floating point input in a way similar to integer input. Use a Scanner object to scan through a stream of input characters and to convert them into a float or a double . The methods that do this are nextFloat() and nextDouble()