这段代码在if行报错"cannot make a static reference to a non-static field tel"是怎么回事?
public class Test2 {
Telphone tel=new Telphone();
Telphone tell=new Telphone();
public static void main(String args[]){
if(tel.equals(tell)){
System.out.println("两个对象是相同的");
}else{
System.out.println("两个对象是不同的");
}
}
}