The code posted at the top is a code that converts infix to postfix expressions. My problem is that in my main method, i can't get my "get input from user" to loop while the user still wants to input expressions. In line 28, if YES it should go back to lines 15-28, if NO then output line 30.
???????????????
Hello,
For now, i have 2 ways in my mind. (Recursive method & Do While loop).
1st One) Create a method and cut body of main method into it. Then on showOptionPane if user entered YES then call that same method from there (Recursion) else exit.
2nd One) Use Do While loop, So it will run minimum once and store input of showOptionPane in String variable ( EG: userContinue ) and While expression will be userContinue == "YES".
Regards, :)