Uma de collection

public class NewsTicker {
public static void main(String[] args) {
TreeSet ticker = new TreeSet();
ticker.add(new String(“Football news story”));
ticker.add(new String(“Basketball news story”));
System.out.println (ticker.first());
}
}

vai imprimir “Football news…” ou “Basketball news…” ?

eh pela ordem alfabética…
no caso Basket…

a TreeSet é um tipo de Map ordenado

Basketball news story :?:

:roll: hummmm … acho que eh isso.

é isso mesmo !!