// This appears in Core Web Programming from
// Prentice Hall Publishers, and may be freely used
// or adapted. 1997 Marty Hall, hall@apl.jhu.edu.

public class NoConstructor {
  public static void main(String[] args) {
    NoConstructor test = new NoConstructor();
    System.out.println("X is " + test.x + ".");
  }

  private int x = 0;

  // Oops! Not a constructor since it has return type.
  
  public void NoConstructor() { 
    x = 1;
  }
}

