Results 1 to 5 of 5
- 01-23-2009, 12:47 PM #1
Member
- Join Date
- Dec 2008
- Posts
- 17
- Rep Power
- 0
- 01-23-2009, 12:59 PM #2
arrays ve arraylists
You can't change the size of an array. You can change the size of an arraylist.
Array versus ArrayList
Java Tutorials - ArrayList Vs. Static Arrays | DreamInCode.net
Array (Java Platform SE 6)
ArrayList (Java Platform SE 6)
Luck,
CJSLChris S.
Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.
- 01-23-2009, 09:32 PM #3
Member
- Join Date
- Jan 2009
- Posts
- 40
- Rep Power
- 0
So to answer this another way, move the values of the array into an arraylist then add to the arraylist then move the values to a new array with the size of that array being arraylist.size()
- 01-23-2009, 11:48 PM #4
huh?
I didn't quite understand that, but it didn't sound right... no need to move anything aywhere. Just use an arraylist from the begining. I've posted the link of the Javadoc so the methods to get (hint, hint) the elements from the arraylist can be studied.
Luck,
CJSLChris S.
Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.
- 01-26-2009, 02:21 PM #5
Member
- Join Date
- Jan 2009
- Posts
- 40
- Rep Power
- 0
yes, in a perfect world, i'd say use arrayList also :) gosh, sometimes i let where i work control my thoughts of how things are done... unfortunately i don't really have control of what comes in to the function and what leaves the function... so if a function's param is an array, then you need to insert into the array, and it returns an array... well i suppose you could just use arrayList.toArray() to send it back.. that to would work... anyhow, i think this rug has been beaten well :) user ArrayList!! :)
Similar Threads
-
stored procedure
By sankarigopi in forum JDBCReplies: 1Last Post: 11-13-2008, 04:53 PM -
Executing stored procedures
By mew in forum JDBCReplies: 3Last Post: 08-20-2008, 05:47 PM -
Stored Procedures
By geeta_ravikanti in forum JDBCReplies: 1Last Post: 04-22-2008, 02:34 AM -
How to access array stored in database through JSTL
By saurabh.joshi in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 11-19-2007, 01:46 AM -
stored procedures in Hibernate
By Alan in forum JDBCReplies: 2Last Post: 05-31-2007, 04:49 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks