I am new to Java so this may be a simple question.
I have made a calculator where the user clicks buttons and it enters the text into a JTextField.
I have used the .getText() method and saved it into a String.
Using System.out.println() I have seen that the String is "8*7*7-8/4", obviously if I could just execute this and get the answer 390 then this would be far easier than splitting it up and making it more complicated than it seems.
Thanks Matt