I\'m having a strange error. I have 2 classes in the same package but they can\'t find each other. From what I remember, as long as the classes are in the same package, they
It should be:
A.java
package com.mypackage; class A { public static int read(){ //some code } }
B.java
package com.mypackage; class B { public static void main(String args[]){ int x = A.read(); } }