Faculty of Engineering and Mathematical Sciences 
Not logged in (login)


This forum is provided to promote discussion amongst students enrolled in Data Structures and Algorithms (CITS2200).
RSS cloud
Jump to:

Unchecked cast from object to E

1 of 251 articles shown, currently no other people reading this forum.
Date: Wed 1st Apr, 10:20am
To be clear, an unchecked cast is just a warning, not an error. Your code compiles and 
runs fine with it, just it is upset with you because Java can't automatically know 
that that cast is a safe thing to. So feel free to suppress the warning, as you are 
effectively just telling the compiler "I know this is safe".

Related articles

Unchecked cast from object to E (all 4) RSS
├─ original   Tue 24th Mar, 6:11pm, ANONYMOUS
├─ reply 1   Tue 24th Mar, 9:16pm, Xi R.
├─ THIS   Wed 1st Apr, 10:20am, ANONYMOUS
└─ reply 3   Wed 1st Apr, 10:25am, ANONYMOUS
This Page

Program written by: [email protected]
Feedback welcome
Last modified:  8:27am May 24 2020