class Person
{
person(int age)
{
this.age=age;
}
public boolen compare(Person p)
{
returu this.age==p.age;
}
class PersonDemo3
{
public static void main(String[] args)
{
person p1 = new person(20);
person p2 = new person(25);
boolen b = p1.compare(p2);
System.out,println(b);
}
}
}
可以的电 每一句都注释一下 麻烦大神们了 |
|