File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Android Security Essentials Live Lessons
this week in the
Pass 2D array between methods
Joined: Sep 05, 2011
Sep 05, 2011 11:23:19
I am struggling to pass my 2D array between classes. The following getMethod should return a valid 2D array:
However when i try to access from another class my first attempts fall woefully short:
When I try to access elements they are all null. how do i accomplish this?
All help very welcome.
Joined: Oct 27, 2005
Sep 05, 2011 13:21:54
Welcome to the Ranch!
Where and how have you initialized
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions
How To Answer Questions
Joined: Oct 13, 2005
Sep 06, 2011 04:35:37
I am afraid I am going pedantic: there is no such thing in Java™ as a 2D array. There are arrays of arrays, however.
It is sorta covered in the
JavaRanch Style Guide
subject: Pass 2D array between methods
Searching an Array
About access to relevant variables from variable name
remove duplicates from an array
getting 2D array view in jsp from actionform properties
web application design
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014