Class HelpfulNullPointerExceptionExamples.Address

java.lang.Object
net.jrodolfo.java_evolution.java14.HelpfulNullPointerExceptionExamples.Address
Enclosing class:
HelpfulNullPointerExceptionExamples

public static class HelpfulNullPointerExceptionExamples.Address extends Object
Address with a city value used by the null-pointer diagnostic example.
  • Constructor Details

    • Address

      public Address(String city)
      Creates an address.
      Parameters:
      city - the city name
  • Method Details

    • city

      public String city()
      Returns the city name.
      Returns:
      the city name