Kirstie Fran wrote:any suggestions on how to do this?
Yes, but it's going to be difficult to achieve with your program as it is: You need to keep your calculator and your input/display (be it GUI, console or browser-based) completely separate.
And that means, as Campbell said, coming up with a public API for your calculator.
Right now, they're all mixed up together, so your first cut should be to remove all those
Scanner.get... and
System.out.println() statements from your calculator and put them in another class (
CalculatorDialog?). Once you have that, you'll probably find it a lot simpler to re-write to use GUI components.
Winston