This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Getting MEAN with Mongo, Express, Angular, and Node and have Simon Holmes on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes array problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "array problem" Watch "array problem" New topic

array problem

A. Wolf
Ranch Hand

Joined: Sep 28, 2003
Posts: 57
I made my own class called "NameLocation" that can store 2 String variables via a
public void setVars(String,String) method.
If I say:

the NameLocation class does what its supposed to do and everything is happy
but, if I say:

I am eagerly awaited by my console with a NullPointerException
Help! What am I overlooking??? (love those "Graemlins")
chi Lin
Ranch Hand

Joined: Aug 24, 2001
Posts: 348
I think you are missing something in between like

A. Wolf
Ranch Hand

Joined: Sep 28, 2003
Posts: 57
I think you are right...
Thank You!
I agree. Here's the link:
subject: array problem