> Java Programming: Splitting a double?

Java Programming: Splitting a double?

Posted at: 2014-12-18 
A StringTokenizer is a posibility:

http://javacodex.com/Reading-Input/Read-...

Get input line as string

Split string (one or more space as delimiter)

parse the split array string values to double (Double.parseDouble method) (or to the type you want)

I am creating a program that prompts the user to input two numbers at once separated by spaces. I need a way to be able to identify the numbers as 2 separate variables. Also, I am not allowed to use any if then statements.