class NoteBook { String name; public NoteBook() { this(null); // or you could do: this(""); } // Java is looking for a constructor that has // this signature and cannot find one in the // NoteBook class. public NoteBook(String s) { name = s; } }