-
Notifications
You must be signed in to change notification settings - Fork 761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Erro ao fazer o cast do elemento - GenericsExempleList #53
Comments
Oi, @pauloheidenreich. Tudo certinho? Poderia me mostrar a mensagem da exception? Seria mesmo uma exception ou um warning? Aqui eu tirei uma dúvida do colega sobre o Casting, veja se ajuda: #23 (comment) Veja se ajuda. Qualquer dúvida, é só falar. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: