主题:这段程序怎么?
package a;
public class aaa
{
String emp="pacage's member variable";
public void getMes()
{
System.out.println(emp);
}
}
import a.aaa;
public class test
{
public static void main(String[] args)
{
aaa a=new aaa();
a.getMes();
}
}
麻烦哪位讲解下咯,刚入门,呵呵。
public class aaa
{
String emp="pacage's member variable";
public void getMes()
{
System.out.println(emp);
}
}
import a.aaa;
public class test
{
public static void main(String[] args)
{
aaa a=new aaa();
a.getMes();
}
}
麻烦哪位讲解下咯,刚入门,呵呵。