Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
I tested the following code and found out that the HashMap is printing a perfect REVERSE ORDER of elements. Why is it so as documentation maintains that the order will not necessarily be the way which is input. import java.util.*; class PrintData { class IteratorDemo { TreeMap t = new TreeMap(); System.out.println("ArrayList"); } Replies: |
Sponsored Links
|