give your suggestion

i am really appreciate any help from you guys..

I am blind in Collections .... I would like to use collections in my project ?

Initially registration form ...

I get value from registration form. and form values will be stored in database ..

here can i use Collections ? which one i will use ?

[323 byte] By [kannankallia] at [2007-11-27 11:32:26]
# 1

you can use treemap which stores its elements in a tree and orders its elements based on their values.so it wil be easy to store and retreive the values.

swetha123@sa.coma at 2007-7-29 16:45:29 > top of Java-index,Core,Core APIs...
# 2

http://www.roseindia.net/javacodeexamples/index.shtml

swetha123@sa.coma at 2007-7-29 16:45:29 > top of Java-index,Core,Core APIs...
# 3

thanks for your reply ...

1) what is the use of collections here ?

2)what it does ?

3)What is the benefit by using TreeMap in this area ?

4)why i use TreeMap not any other thing ?

kannankallia at 2007-7-29 16:45:29 > top of Java-index,Core,Core APIs...
# 4

1) We won't do your homework

2) We won't do your homework

3) We won't do your homework

4) Send me $50, 000, and I'll do your homework :P

RedUnderTheBeda at 2007-7-29 16:45:29 > top of Java-index,Core,Core APIs...
# 5

How did you decided that you'd like to use collections in your project when you don't know what they are?

dannyyatesa at 2007-7-29 16:45:29 > top of Java-index,Core,Core APIs...
# 6

> How did you decided that you'd like to use

> collections in your project when you don't know what

> they are?

probably a line in his homework assignment "you have to use Collections" or something like that...

jwentinga at 2007-7-29 16:45:29 > top of Java-index,Core,Core APIs...
# 7

AFAIK TreeMap is not a Collection.

1/2) A collection represents a group of objects (quoting from the API)

3) TreeMap is a tree-based map that allow sorting and easy retrieval of matches.

4) I'd rather use a simpler Map, as you are going to store a database. A Map basically allows you to retrieve a value from a key.

Is a requirement that you use a Collection to do your homework ?

Message was edited by: java_knight

java_knighta at 2007-7-29 16:45:29 > top of Java-index,Core,Core APIs...
# 8

AFAIK TreeMap is not a Collection.

1/2) A collection represents a group of objects (quoting from the API)

3) TreeMap is a tree-based map that allow sorting and easy retrieval of matches.

4) I'd rather use a simpler Map, as you are going to store a database. A Map basically allows you to retrieve a value from a key.

Is a requirement that you use a Collection to do your homework ?

yes . i am doing a development alone .. if you give (where and how to use )its good for me ...

kannankallia at 2007-7-29 16:45:29 > top of Java-index,Core,Core APIs...
# 9

TreeMap may not implement java.util.Collection, but it's still part of the collections API

georgemca at 2007-7-29 16:45:29 > top of Java-index,Core,Core APIs...