Dynamicaly sizing two dimensional array?

Posted on 2004-04-23
Medium Priority
Last Modified: 2010-04-01
Is there anything that would be equivalent to a dynamicaly sizing two dimensional array?

I want to read a database resultset into something that I can return....
Question by:chambers777

Expert Comment

ID: 10902289
You could use a Vector, which you can size dynamically, and in each Vector element you store another Vector.


Accepted Solution

searlas earned 200 total points
ID: 10907731
More generally, return a List of Lists, choosing the implentation most sutiable wrt synchronization (Vectors are synchronized - i.e. thread safe, ArrayLists are not)

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This article describes and provides a custom-made tool I wrote to give businesses a means of identifying commercial music content, without having to expend too much effort. Business recordings are easily identified from possibly illegal music files …
Are you wondering how to check data usages on your T-Mobile? Here are the quick ways to check data usages or balance on T-Mobile.
If you are looking for an automated solution for backup single or multiple Office 365 user mailboxes to Outlook data file, then you can use Kernel Office 365 Backup & Restore tool. Go through the video to check out the steps to backup single or mult…
When you have multiple client accounts to manage, it often feels like there aren’t enough hours in the day. With too many applications to juggle, you can’t focus on your clients, much less your growing to-do list. But that doesn’t have to be the cas…

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question