how can we read *,- and + symbol through scanner when we press + symbol and when we press * it gives multiplicative and addition result of two number.............can any one tell me...............
Printable View
how can we read *,- and + symbol through scanner when we press + symbol and when we press * it gives multiplicative and addition result of two number.............can any one tell me...............
What have you tried (please post code in the code tags)? Where are you stuck? Suggested reading: How To Ask Questions The Smart Way
The Scanner class should be able to read those characters.
Look at KeyListeners for a way to receive notification when a key is pressed.
The rest is up to your program to execute your code to do the operation.