Amigos, tive que falar de muito código nesta resposta então respondi diretamente para o Leonardo.
Se alguém tiver alguma dúvida pode postar, mas se for mandar código, enfatizo o pedido do prof. de mandar diretamente para os monitores. 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/4/23 Leonardo Gonçalves Costa <[email protected]> > Hahaha. Estou rindo de mim mesmo. > Não entendi e estou travado na mesma letra "e)". Mesmo lendo os posts. (rs) > > Não sei como fazer para verificar em values(). Não estou entendendo. > Escrevi o inicio assim: > *public static Cargo obtem(String nome){* > * **nome.toUpperCase();* > > Então, quando eu vou para a parte crucial (rs) eu apanho usanso for e if. > Já estou doido fazendo tentativa e erro pq fiquei puto já. (rsrs) > Da última vez até escrever este eu tava tentando assim: > *public static Cargo obtem(String nome){* > * **nome.toUpperCase();* > * **if(nome:Cargo){* > * **return Cargo[]Cargo.values();* > * **}* > * **return null;* > * > * > É questão de como se entende e recebe uma informação. Por isso eu tenho o > direito de não entender né?(rs) > > Abraços, > Leonardo G. Costa. > > > 2010/4/23 Miguel Jonathan <[email protected]> > > Lembrando que o enunciado já diz que se o argumento do obtem(String s) não >> corresponder a nenhum dos cargos do enum, o método deve retornar null.... >> >> Jonathan >> >> >> On Thu, Apr 22, 2010 at 9:29 AM, Renan Machado >> <[email protected]>wrote: >> >>> Agora foi , valeu a ajuda ! >>> >>> -- >>> 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]<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]<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.
