请问一下哪里错了???实在找不出来了……
class Variable{
public static int i;
private int j;
public void intplay()
{
int k=0;
i++;
j++;
k++;
System.out.print("i="+i);
System.out.print(" j="+j);
System.out.println(" k="+k);
}
public void allDisplay()
{
intplay();
intplay();
}
}
public class E_varible
{
public static void main(String[] args)
{
Variable var1=new Variable();
Variable var2=new Variable();
var1.allDisplay();
var2.allDisplay();
}
}
错误是E_variable是公共类,不太懂啊- _ -||