, 28 / null-Referenzen Konstruktoren class Human { [...] void greet() { if (name.contains( Dr. )) System.out.println( Guten Tag! ); else System.out.println( Hi! ); } Listing 5: Human.java Human someone = new Human(); someone.greet(); hi.
{}