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()) {