Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Programmer > method paramete...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 7 Topic 52653 of 53449
Post > Topic >>

method parameters

by david <David.Abdurachmanov@[EMAIL PROTECTED] > May 11, 2008 at 11:22 AM

Hello everyone, I am a new with JAVA and I have one problem now which
I can not figure out now, maybe I am tired. Let's get to the problem.
3 small parts of the code:

        Boolean linksVault[][] = null;
        if (!fLoadData(linksVault, args[0])) {
            System.out.println("Kazkas blogai ir tiek");
            System.exit(1);
        }

    .........

    private static boolean fLoadData(Boolean[][] linksVault, final
String fName) {

    .........

   linksVault = new Boolean[countTop][countTop];

So I send linksVault reference to the fLoadData, which then creates
the matrix of Boolean object it everything is perfect with it inside
that method, but outside it always get NullPointerException. It looks
like linksVault does not point to the matrix, any ideas way?

Thanks,
david
 




 7 Posts in Topic:
method parameters
david <David.Abdurachm  2008-05-11 11:22:05 
Re: method parameters
Eric Sosman <esosman@[  2008-05-11 14:34:33 
Re: method parameters
david <David.Abdurachm  2008-05-11 11:46:27 
Re: method parameters
Lew <lew@[EMAIL PROTEC  2008-05-11 14:54:21 
Re: method parameters
Patricia Shanahan <pat  2008-05-11 12:04:45 
Re: method parameters
david <David.Abdurachm  2008-05-11 12:13:54 
Re: method parameters
Mark Space <markspace@  2008-05-11 13:38:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 5 19:27:40 CDT 2008.