FileDocCategorySizeDatePackage
LinkedHashSetTest.javaAPI DocExample410Mon Nov 13 15:18:32 GMT 2006collections

LinkedHashSetTest

public class LinkedHashSetTest extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

    Set<Character> s2 = new LinkedHashSet<Character>(8);
    Collections.addAll(s2, 'a", 'b", 'j");
    // iterators of a LinkedHashSet return their elements in proper order:
    assert s2.toString().equals("[a, b, j]");