Read double from console without having to read a string and converting it to double.
Is there a stream class with a method that would allow reading double value from console without having to read strings (as in BufferedReader, Scanner) and code explicitly to convert it to a double value.
i.e. Is there a way which doesn't use Double.valueOf(String inputfrmconsole).doubleValue()?
Re: Read double from console without having to read a string and converting it to dou
This should definitely help you.
Re: Read double from console without having to read a string and converting it to dou
Quote:
method that would allow reading double value from console
Also look at the Scanner class. It has methods to read and convert data.
Re: Read double from console without having to read a string and converting it to dou
Thanks a lot Mrc0d3r and Norm.