Since I'm a newbie in Java I would probably ask dumb question. :c-smile:
I want to read a string from keyboard(array of string perhaps) e.g.
Enter some numbers:1.2 3.2 4 71.3and convert it to Double array so I can easily calculate average later in some other method!
I planned to read it like:
BufferedReader line = new BufferedReader( new InputStreamReader(System.in) ) ; String array = line.readLine();
And I was wonder how to convert this string into an array of double.
Thank you!
:)


Sign In
Create Account

Back to top









