1. Welcome! Please take a few seconds to create your free account to post threads, make some friends, remove a few ads while surfing and much more. ClutchFans has been bringing fans together to talk Houston Sports since 1996. Join us!

More help with Java...

Discussion in 'BBS Hangout' started by GladiatoRowdy, Nov 5, 2007.

  1. LegendZ3

    LegendZ3 Member

    Joined:
    Nov 6, 2002
    Messages:
    4,196
    Likes Received:
    5
    That array only can be accessed in the main method. Because it is declared in main. Other methods in the Driver class cannot access it as it is out of their scope.
     
  2. GladiatoRowdy

    GladiatoRowdy Member

    Joined:
    Oct 15, 2002
    Messages:
    16,596
    Likes Received:
    496
    OK, I got all five classes to compile, but now get a NullPointerException when I try to run it. Anyone have the time and inclination to help?
     
  3. GladiatoRowdy

    GladiatoRowdy Member

    Joined:
    Oct 15, 2002
    Messages:
    16,596
    Likes Received:
    496
    Is there anybody....out there?

    (Sorry, had a Pink Floyd moment there)
     
  4. DarkHorse

    DarkHorse Member

    Joined:
    Oct 9, 1999
    Messages:
    6,752
    Likes Received:
    1,296
    I'm pretty busy at the moment, but I might be able to give it a quick look if you email me the files and tell me what line it's failing on.

    nhayden@hotmail.com
     
  5. OldManBernie

    OldManBernie Old Fogey

    Joined:
    May 5, 2000
    Messages:
    2,851
    Likes Received:
    221
    Does it have anything to do with your array? Is the array actually pointing to an object when you are trying to access it?
     

Share This Page