i want to run main class and then i got this on my terminal, but when i run this code in intelliJ it work theres no error. can you guys help me?
Main.java:3: error: package data does not exist
import data.Admin;
^
Main.java:4: error: package data does not exist
import data.Student;
^
Main.java:9: error: cannot find symbol
Admin admin = Admin.getInstance();
^
symbol: class Admin
location: class Main
Main.java:9: error: cannot find symbol
Admin admin = Admin.getInstance();
^
symbol: variable Admin
location: class Main
Main.java:41: error: cannot find symbol
Student foundStudent = null;
^
symbol: class Student
location: class Main
Main.java:43: error: cannot find symbol
for (Student student : admin.studentList) {
^
symbol: class Student
location: class Main
6 errors
i run that program on intelliJ it work, but when i run in vscode i got that error message
New contributor
Ravendette is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2