Search:

Type: Posts; User: nutan

Search: Search took 0.13 seconds.

  1. Replies
    4
    Views
    1,027

    Re: Null Pointer Excpetion help......

    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...
  2. Replies
    4
    Views
    1,027

    Re: Null Pointer Excpetion help......

    Exception in thread "main" java.lang.NullPointerException
    at WordList.addWord(WordList.java:24)
    at Execution.main(Execution.java:13)

    --- Update ---

    Exception in thread "main"...
  3. Replies
    4
    Views
    1,027

    Null Pointer Excpetion help......

    Help needed .. Null pointer Exception.. ~o)





    //Execution class .......


    public class Execution {
  4. Re: What is Wrong When calling the function using arrayList.

    means i have to create bookLend method inside the Library..............

    and thanks for your help.. :)
  5. Re: What is Wrong When calling the function using arrayList.

    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()...
  6. What is Wrong When calling the function using arrayList.

    code for library.java

    import java.util.ArrayList;
    public class Library {
    private String libraryName,libAddress;
    Library(String libraryName,String libAddress)
    {
    this.libraryName =...
Results 1 to 6 of 6