public class propertise {
public static void main(String[] args) {
// Properties propertie= new Properties();
// propertie.put("abc",15);
// propertie.put("fgh",16);
// propertie.put("uig",25);
// propertie.remove("abc");
// System.out.println(propertie);
b s=b.getclas();
System.out.println(s);
}
}
class b{
private String name;
private static b go = new b("小明");
private b(String name){
this.name=name;
}
public static b getclas(){
return go;
}
@Override
public String toString() {
return "b{" +
"name='" + name + '\'' +
'}';
}
}