package use;
//import com.x.Dog; 需要用到那个类,就导入那个类
import com.x.*; // 导入包下的所有类
public class user {
public static void main(String[] args) {
Dog dog = new Dog();
com.y.Dog dog1 = new com.y.Dog();
"hello".equals("aaa");
System.out.println();
}
}
class Person{
String name;
int age;
double ala;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public double getAla() {
return ala;
}
public void setAla(double ala) {
this.ala = ala;
}
}
标签:java,name,age,练习,Dog,ala,public,String
From: https://www.cnblogs.com/liudelantu/p/17608022.html