You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ao rodar o exemplo da classe GenericsExempleList, a IDE apontou uma exception ao fazer o cast do valor do elemento do tipo "Int" para o tipo String, lançando a ClassCastException. Neste caso, eu poderia ao invés de fazer o cast, eu poderia chamar o método toString() ? Ou dependendo do tipo poderia gerar o mesmo erro ?
The text was updated successfully, but these errors were encountered:
Ao rodar o exemplo da classe GenericsExempleList, a IDE apontou uma exception ao fazer o cast do valor do elemento do tipo "Int" para o tipo String, lançando a ClassCastException. Neste caso, eu poderia ao invés de fazer o cast, eu poderia chamar o método toString() ? Ou dependendo do tipo poderia gerar o mesmo erro ?
The text was updated successfully, but these errors were encountered: