I am working on a problem and I am very stuck because I am just starting to learn java. Any help I can get to understand this would be great. I have to write a program that
You have to initialise the object (create the object itself) in order to be able to call its methods otherwise you would get a NullPointerException.
NullPointerException
WordList words = new WordList();