public static void main(String []args){

        Person p1 = new Java8().new Person("bob", "7-Jun-2013");
        Person p2 = new Java8().new Person("bob", "7-Jun-2013");

        if (p1 == p2)
            System.out.println("Person p1==p2 " + p1.toString() + " " + p2.toString());
        else
            System.out.println("Person p1!=p2 " + p1.toString() + " " + p2.toString());

        if (p1.equals(p2))
            System.out.println("Person p1.equals(p2) " + p1.toString() + " " + p2.toString());
        else
            System.out.println("Person !p1.equals(p2) " + p1.toString() + " " + p2.toString());

        Person2 p3 = new Java8(). new Person2("bob", "7-Jun-2013");
        Person2 p4 = new Java8(). new Person2("bob", "7-Jun-2013");

        if (p3 == p4)
            System.out.println("Person2 p3==p4 " + p3.toString() + " " + p4.toString());
        else
            System.out.println("Person2 p3!=p4 " + p3.toString() + " " + p4.toString());

        if (p3.equals(p4))
            System.out.println("Person2 p3.equals(p4) " + p3.toString() + " " + p4.toString());
        else
            System.out.println("Person !p3.equals(p4) " + p3.toString() + " " + p4.toString());

        Person2 p5 = new Java8(). new Person2("bob", "8-Jun-2015");
        Person2 p6 = new Java8(). new Person2("bob", "7-Jun-2013");
        if (p5 == p6)
            System.out.println("Person2 p5==p6 " + p5.toString() + " " + p6.toString());
        else
            System.out.println("Person2 p5!=p6 " + p5.toString() + " " + p6.toString());

        if (p5.equals(p6))
            System.out.println("Person2 p5.equals(p6) " + p5.toString() + " " + p6.toString());
        else
            System.out.println("Person !p5.equals(p6) " + p5.toString() + " " + p6.toString());


        if (p1.equals(p3))
            System.out.println("Person2 p1.equals(p3) " + p1.toString() + " " + p3.toString());
        else
            System.out.println("Person !p1.equals(p3) " + p1.toString() + " " + p3.toString());

        if (p3.equals(p1))
            System.out.println("Person2 p3.equals(p1) " + p1.toString() + " " + p3.toString());
        else
            System.out.println("Person !p3.equals(p1) " + p1.toString() + " " + p3.toString());

        boolean val = "test"=="test";
        System.out.println("\"test\"==\"test\" " + val);
        val = "test".equals("test");
        System.out.println("\"test\".equals(\"test\") " + val);
        val = new String("test") == (new String("test"));
        System.out.println("new String(\"test\")==(new String(\"test\")) " + val);
        val = new String("test").equals(new String("test"));
        System.out.println("new String(\"test\").equals(new String(\"test\")) " + val);



    }