This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes TreeMap question#1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "TreeMap question#1" Watch "TreeMap question#1" New topic
Author

TreeMap question#1

Anthony Alexander
Greenhorn

Joined: Feb 16, 2006
Posts: 15
How come when I have an array of TreeMaps and I try to view some values, I only see the last entry?



other part of code segment:


I apologise, N is defined in main program as 10 and there are already items in WeightData array treemap at this point.
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
Can you show all of the code?
Anthony Alexander
Greenhorn

Joined: Feb 16, 2006
Posts: 15
OK Here goes. It is a information retrieval program. You will need ten text files (words.txt-words10.txt) to run it.

It is still in progress so it may be hard to follow.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: TreeMap question#1
 
Similar Threads
interview doubt
null pointer exception
Sorting question
Problem in a while loop
Can we resize the image in j2me