2008-10-26 22:28:50 UTC
import s2.*;
class b
{
public static void main(String args[])
{
a o1=new a();
o1.dis();
}
}
---------------------------------
package s2;
class a
{
public void dis()
{
System.out.println("hello");
}
}
//when i compile a.java, it will compile easily,but when i try to compile b.java it shows an error .I am truing to set classpath but still not work.plz help.