By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,086 Members | 1,452 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,086 IT Pros & Developers. It's quick & easy.

How to make 2-d array in java when no of rows are not known

P: 1
hii all

How to make 2-d array in java when no of rows are not known

let me know if u have the solution 4 it...

Regards
ankur maheshwari
Mar 12 '07 #1
Share this Question
Share on Google+
4 Replies


Ganon11
Expert 2.5K+
P: 3,652
You should ask your question in the Java forum.
Mar 12 '07 #2

MMcCarthy
Expert Mod 10K+
P: 14,534
You should ask your question in the Java forum.
Moved to Java forum.

ADMIN
Mar 12 '07 #3

10K+
P: 13,264
Depends on which you want to call your rows

Expand|Select|Wrap|Line Numbers
  1.  String[][] myArray = new String[5][];
Mar 12 '07 #4

Expert 100+
P: 1,510
hii all

How to make 2-d array in java when no of rows are not known

let me know if u have the solution 4 it...

Regards
ankur maheshwari
not sure what you require, e.g. do you want a 2D array where the number of elements in each row may be different?
Mar 12 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.