Solved

Dynamicaly sizing two dimensional array?

Posted on 2004-04-23
2
177 Views
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....
0
Comment
Question by:chambers777
2 Comments
 
LVL 9

Expert Comment

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

/Nick
0
 
LVL 7

Accepted Solution

by:
searlas earned 50 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)
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
loop through list of objects 14 186
spring AOP 6 71
SimpleDateFormat.parse examples 19 84
Retrieving file from bytes array in spring mvc 8 52
Owning a franchise can be the dream of a lifetime. It provides a chance for economic growth. You can be as successful as you want.  To make your franchise successful, you need to market it successfully. Here are six of the best marketing strategies …
In  today’s increasingly digital world, managed service providers (MSPs) fight for their customers’ attention, looking for ways to make them stay and purchase more services. One way to encourage that behavior is to develop a dependable brand of prod…
This video discusses moving either the default database or any database to a new volume.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now