I am trying to make a simple java program for calculating two number, Where the user inputs a number then inputs a operator which may be "+,-,*,/" and after that he inputs the second number so that he gets a answer. But i don't know how can i get my user input for the operator as a caharacter or char value so that i can test whether i have to add or subtract both the numbers.
Bookmarks