aspose file tools*
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

Win a copy of Spring in Action this week in the Spring forum!
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!
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: array problem