package data_structures;
import java.util.StringTokenizer;
public class ExpressionEvaluator implements Stack, Queue {
private String userInput;
public ExpressionEvaluator() {
Userinput = null;
}
Iterator<E> st = new StringTokenizer();
token = st.next();
while (st.hasMoreTokens()) {
此时问题已经发生,所以我不再继续代码
错误:
data_structures/ExpressionEvaluator.java:10: illegal start of typejava
while (st.hasMoreTokens()) {
^
data_structures/ExpressionEvaluator.java:10: <identifier> expected
while (st.hasMoreTokens()) {
^
data_structures/ExpressionEvaluator.java:10: ';' expected
while (st.hasMoreTokens()) {
^
data_structures/ExpressionEvaluator.java:10: illegal start of type
while (st.hasMoreTokens()) {
^
data_structures/ExpressionEvaluator.java:10: <identifier> expected
while (st.hasMoreTokens()) {
^
data_structures/ExpressionEvaluator.java:10: ';' expected
while (st.hasMoreTokens()) {