This is my code in one file:
package AI;
public class Class1 {
public static void main1() {
System.out.println("Hello");
}
}
And the other file:
package AI;
public class partsOfSpeech {
public static void main(String args[]) {
Class1 firstInstance = new Class1();
firstInstance.main1();
}
}
How do I compile these files, so that I don't get an error that says it can't find Class1? And how do I run them once they are compiled?