Hi all,
I have two files in one folder: AutoShop.java, and TestAutohop.java. I compiled AutoShop.java. When I try to compile TestAutoShop.java, it gives me error saying: cannot resolve symbol class AutoShop, and pints to the word "AutoSop" in the code. What may be the problem?
My code is as follows:
AutoShop.java:
public class AutoShop {
void displayHoursOfOperation() {
System.out.println("Store Hours:"
System.out.println("Daily: 9:00 AM - 21:00 PM"
}
}
TestAutoShop.java:
public class TestAutoShop {
public static void main(String[] args) {
AutoShop m = new AutoShop();
m.displayHoursOfOperation();
System.exit(0);
}
}
Please help.
Sheila
I have two files in one folder: AutoShop.java, and TestAutohop.java. I compiled AutoShop.java. When I try to compile TestAutoShop.java, it gives me error saying: cannot resolve symbol class AutoShop, and pints to the word "AutoSop" in the code. What may be the problem?
My code is as follows:
AutoShop.java:
public class AutoShop {
void displayHoursOfOperation() {
System.out.println("Store Hours:"
System.out.println("Daily: 9:00 AM - 21:00 PM"
}
}
TestAutoShop.java:
public class TestAutoShop {
public static void main(String[] args) {
AutoShop m = new AutoShop();
m.displayHoursOfOperation();
System.exit(0);
}
}
Please help.
Sheila