Need some help with java

Associate
Joined
26 May 2004
Posts
103
Location
staffordshire
for my uni work i have to create a simple calculator in text oriented java. It needs to take 2 integer values and the following 4 operators + - / * which are all input by the user and outputs a result like 2 + 2 = 4. Im having trouble working out the code to do this is it possible to do this within a switch statement?

any help is appreciated

thanks
 
Back
Top Bottom