public void setName(String name) {
        if(!name.equals("") || name != null) {
            synchronized (Person.class) {
                if (!name.equals("") || name != null) {
                    this.name = name;
                    System.out.println(name);
                }
            }
        }
    }