Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I return ARRAY[][] ?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,

I want a class which does return a stringarray. How should i define the class so that all data in the array can be returned ?
The main idea is to get rows from the DB and show them in a Jtable in an applet for web.

Regards
Elvis
 
You are better off returning a Collection. It will give you that extra layer of abstraction just in case you want to change things around later. Also Collections are easier to work with.

Check out the Collections API in Javadocs. Wushutwist
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top