I am fairly a new java programmer who needs to learn and brush up?
i am having issue on how to start my first java project that involves calculation and need guidance?
Postfix Calculator
I need to make a program that evaluate an arithmetic expression in postfix notation.
The arithmetic expression will be input as a String (by the user) and will contain only integer operands.
Postfix Notation Definition
I read about postfix and understood bit.
I wrote this and trying to figure out how to add expression as user string?
and values will contain only integer operands? program won’t compile?
public class PostfixCalculator { int
length; Stack ri; String expression;
String postfix;
PostFixCalculator(String s){
ri = new Stack(); //create an empty stack
expression = s;
postfix = “”;
length = expression.length; }
boolean isBalance(){
boolean fail =false;
int index = 0; }