Thanks !!!! i got it... i hadn't created the object of the ArrayList in the WordList class......
public void addWord(Word word)
{
wordList = new ArrayList<Word>(); //this was...
Type: Posts; User: nutan
Thanks !!!! i got it... i hadn't created the object of the ArrayList in the WordList class......
public void addWord(Word word)
{
wordList = new ArrayList<Word>(); //this was...
Exception in thread "main" java.lang.NullPointerException
at WordList.addWord(WordList.java:24)
at Execution.main(Execution.java:13)
--- Update ---
Exception in thread "main"...
Help needed .. Null pointer Exception.. ~o)
//Execution class .......
public class Execution {
means i have to create bookLend method inside the Library..............
and thanks for your help.. :)
Ya i know... there are no compiling errors... the output which i m getting of System.out.println("Book Issued To " +boo.getNameOfPerson()); in library.java is null... Just call the getBookLend()...
code for library.java
import java.util.ArrayList;
public class Library {
private String libraryName,libAddress;
Library(String libraryName,String libAddress)
{
this.libraryName =...