A última linha atribui à referência "dados" uma nova instância de TreeMap.

Este TreeMap tem chaves do tipo String (o primeiro tipo dentro do <>) e
valores também String (o segundo tipo dentro do <>).

Abraço

Peter P. Lupo
http://craftnicely.blogspot.com - http://sites.google.com/site/pplupo
MPS.BR Authorized Implementation Practitioner - Certified ScrumMaster
Sun Certified Java Associate - Java Brown Belt
+55 (021) 81742487


2010/5/31 Romulo Freires <[email protected]>

> Gostaria de uma ajuda para entender esse construtor.
>
> public Dicionario(String nome) {
>         super();
>         this.nome = nome;
>         dados =new TreeMap<String, String>();
>
> O que faz essa ultima linha do construtor?
>
> Esse exemplo(serialização) é o ultimo postado no site.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Comp 2 - Geral" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<comp2-geral%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/comp2-geral?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "Comp 
2 - Geral" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/comp2-geral?hl=en.

Responder a