Hello.
You are first reading the operation using JOptionpane. So you don't need Scanner anymore.
Just replace the scanner code with this line. It should work.
//Scanner kbReader = new...