class a
{
b hao=new b();
public static void main(String [] args)
{
System.out.println(hao.a);
}
}
class b
{
String a=new String("haohao");
}
为什么不识别hao啊???
{
b hao=new b();
public static void main(String [] args)
{
System.out.println(hao.a);
}
}
class b
{
String a=new String("haohao");
}
为什么不识别hao啊???
class a
{
public static void main(String [] args)
{
b hao=new b();
System.out.println(hao.a);
}
}
class b
{
String a=new String("haohao");
}
class a
{
static b hao=new b();
public static void main(String [] args)
{
System.out.println(hao.a);
}
}
class b
{
String a=new String("haohao");
}
无法创建一个静态引用给一个非静态域