Basic calculator problem is not working in java

@naman19179,
I have corrected your code https://ide.codingblocks.com/s/164887.
Mistakes:

  1. Using string instead of char.
  2. Put scanner class outside the while(true)