1,
int top=stack.pop();
int newTop=top+stack.peek();
stack.push(top);
stack.push(newTop);
栈的pop,push,peek
2, for(String s:ops)增强for语句
3,s.equals("+")
4,Integer.valueOf(s)
5,Integer.parseInt(s)
1,
int top=stack.pop();
int newTop=top+stack.peek();
stack.push(top);
stack.push(newTop);
栈的pop,push,peek
2, for(String s:ops)增强for语句
3,s.equals("+")
4,Integer.valueOf(s)
5,Integer.parseInt(s)