class Person{
private static Person p = new Person();
private Person(){}
public static Person getp(){
return p;
}
public void print(){
System.out.println("hello world");
}
}
public class Demo01 {
public static void main(String[] args) {
class Person{
private static Person p = new Person();
private Person(){}
public static Person getp(){
return p;
}
public void print(){
System.out.println("hello world");
}
}
public class Demo01 {
public static void main(String[] args) {
class Person{
private static Person p = new Person();
private Person(){}
public static Person getp(){
return p;
}
public void print(){
System.out.println("hello world");
}
}
public class Demo01 {
public static void main(String[] args) {
class Person{
private static Person p = new Person();
private Person(){}
public static Person getp(){
return p;
}
public void print(){
System.out.println("hello world");
}
}
public class Demo01 {
public static void main(String[] args) {