Thread
:
Using ctrl+d to end input
View Single Post
Apr 5th, 2008, 3:08 PM
#
5
titaniumdecoy
Expert Programmer
Join Date: Nov 2005
Posts: 843
Rep Power:
3
Re: Using ctrl+d to end input
Using Scanner's nextDouble() and hasNextDouble() methods will obviate the need to manually parse each double.
An EOFException is thrown when the end of a file is encountered.
titaniumdecoy
View Public Profile
Visit titaniumdecoy's homepage!
Find More Posts by titaniumdecoy