Hi, I am having a bit of trouble finding a way to check a string for the highest and lowest number. Example:
I would have a:
String example = "1 3 5 9 4 3";
And now I would have to check which is the lowest number and the highest too. Maybe with a for and auxiliary variables like:
int highest;
int lowest;
I can't figure out a way to do it...Furthermore, the numbers must be spaced like above, and I got no clue on how to take them into a int or something... And it can't be using arrays since it is a school project and the teacher won't let us use them in any way...
If you could help me I would be most grateful.
- :$