Search Results
6/16/2025, 3:21:02 PM
can someone explain what i'm doing wrong here? i'm getting this error at compilation
javac ArrayStack.java
ArrayStack.java:3: error: cannot find symbol
public class ArrayStack<E> implements Stack<E> {
^
symbol: class Stack
1 error
Stack.java compiles without issue, they're in the same folder and package, and the IDE doesn't give any errors or suggestions (i tested in eclipse, vim is just used here because the split screen is helpful to show both files at once)
javac ArrayStack.java
ArrayStack.java:3: error: cannot find symbol
public class ArrayStack<E> implements Stack<E> {
^
symbol: class Stack
1 error
Stack.java compiles without issue, they're in the same folder and package, and the IDE doesn't give any errors or suggestions (i tested in eclipse, vim is just used here because the split screen is helpful to show both files at once)
Page 1