class phone{
String size;
String CPU;
String RAM;
}
public class test{
public static void main(String []args){
phone one=new phone();
one.CPU="Intel";
phone two=new phone();
two.CPU="Intel";
if(one.equals(two)){
}
else{System.out.print("是不同的");}
}}
String size;
String CPU;
String RAM;
}
public class test{
public static void main(String []args){
phone one=new phone();
one.CPU="Intel";
phone two=new phone();
two.CPU="Intel";
if(one.equals(two)){
}
else{System.out.print("是不同的");}
}}
2015-11-30
public class LIANXI {
static int s1=86;
static int s2=92;
public static int sum(){
return s1+s2;
}
public static void main(String[] args) {
int all=LIANXI.sum();
System.out.println(all);
}
}
static int s1=86;
static int s2=92;
public static int sum(){
return s1+s2;
}
public static void main(String[] args) {
int all=LIANXI.sum();
System.out.println(all);
}
}
2015-11-29