Se variável já for uma instância da Classe não precisa dar new.

[s]
ttc

On Tue, Jun 15, 2010 at 12:18 PM, Léo <[email protected]> wrote:

> quando criamos uma classe e depois ela pertence a um argumento chave
> do TreeMap nós colocamos assim?
> <Classe variavel, valor>
>
> e na hora de criar um método para incluir no TreeMap damos um
> put(variavel,variavel) ou (put new Classe (...),variavel)?
>
>
> Abraços.
>
> --
> 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