Results 1 to 8 of 8
- 09-06-2011, 02:28 AM #1
Member
- Join Date
- Aug 2011
- Posts
- 14
- Rep Power
- 0
- 09-06-2011, 02:41 AM #2
Re: how do we know which collection class to use when?
Experience.
Are you going to dump all your homework questions on the forum? Have you done any research to answer these questions yourself?
- 09-06-2011, 03:17 AM #3
Member
- Join Date
- Aug 2011
- Posts
- 14
- Rep Power
- 0
Re: how do we know which collection class to use when?
Excuse me... These are not my home work questions..they are my own questions... and as I donot have experience, and want to know/learn something, I keep posting here(New To Java Forum).. that the experienced guys help us learn..
- 09-06-2011, 07:13 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Re: how do we know which collection class to use when?
What Junky asking here is that your question is not more descriptive. In other words your question give me an impression that you have not read/search anything related with your question. If you have did that you may ask a question something like "Why we are using a ArrayList instead LinkedList in case of ...?". Did yu get our point?
- 09-06-2011, 07:16 AM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Re: how do we know which collection class to use when?
Read about three main collections on Java DOC and other stuff, which as Set, List and Map. Then try to summarize them. Adding them into a table is really nice. For example, when comes to the collections in a List you can store duplicates items (relevant to key) while in Sets or Maps you cannot.
- 09-06-2011, 01:49 PM #6
Member
- Join Date
- Aug 2011
- Location
- INDIA
- Posts
- 64
- Rep Power
- 0
Re: how do we know which collection class to use when?
what about next??i mean how to implement them in real world examples?
- 09-06-2011, 04:56 PM #7
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,069
- Blog Entries
- 3
- Rep Power
- 7
Re: how do we know which collection class to use when?
Understanding how they work will help you understand the situations in which they are used.
- 09-07-2011, 07:24 AM #8
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Re: how do we know which collection class to use when?
Similar Threads
-
Collections, Collection From one class to another
By D.Calladine in forum New To JavaReplies: 2Last Post: 11-23-2010, 02:10 PM -
Collections, Collection From one class to another
By D.Calladine in forum New To JavaReplies: 2Last Post: 11-16-2010, 03:39 PM -
collection class in java
By katturv in forum New To JavaReplies: 5Last Post: 10-24-2010, 07:09 PM -
Java Collection class & methods
By box2box in forum New To JavaReplies: 2Last Post: 05-26-2010, 01:51 AM -
know the class coming under the collection api in java
By javastuden in forum New To JavaReplies: 1Last Post: 11-24-2009, 07:10 AM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks