I would like to use a Scanner to read input (a number) until it encounters either '+','-', '*', or '/'. These operators should end the input, and the value before the respective operator should be stored in a variable.
I am thinking about doing this by using the operators as delimiters. Am I on the right track, or is there a better way to do this?
Nik