Type casting error in Java

Printable View