Yoonsi
New Member
I'm taking a 101 course in Java, and i'm making a particular program... but I'm stuck at a certain point.
If the user input something like: 3 3 4 + -
with spaces between the values.
What I need to do is be able to separate the values into individual strings.
So I'd have one string with "3", one with "3", one with "4", one with "+" and one with "-"
It has me stumped...
Any ideas?
Thanks
Yoonsi
If the user input something like: 3 3 4 + -
with spaces between the values.
What I need to do is be able to separate the values into individual strings.
So I'd have one string with "3", one with "3", one with "4", one with "+" and one with "-"
It has me stumped...
Any ideas?
Thanks
Yoonsi