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,770
    Likes Received:
    1,336
    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.

    [email protected]
     
  5. OldManBernie

    OldManBernie Old Fogey

    Joined:
    May 5, 2000
    Messages:
    2,861
    Likes Received:
    242
    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

  • About ClutchFans

    Since 1996, ClutchFans has been loud and proud covering the Houston Rockets, helping set an industry standard for team fan sites. The forums have been a home for Houston sports fans as well as basketball fanatics around the globe.

  • Support ClutchFans!

    If you find that ClutchFans is a valuable resource for you, please consider becoming a Supporting Member. Supporting Members can upload photos and attachments directly to their posts, customize their user title and more. Gold Supporters see zero ads!


    Upgrade Now