File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Customer Requirements for Developers this week in the Jobs Discussion 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!
I agree. Here's the link:
subject: array problem
It's not a secret anymore!