I just made two classes with one package, but when I run program it says 'Could not find or load main class', but when I remove package p; from main program everything is right.package p; package p;
public class Ex5 {
public static void main(String[] args) {
System.out.println("Hello, World");
}
}
Whats wrong with that package?
package p;
public class Help {
int x;
int y;
public void Help(int a, int b)
{
x = a;
y = b;
}
}