Thank you both. I think Globos hit it correctly...the book I use teaches them casting WAY before they ever learn about objects...so the practical application for it is 3 chapters ahead of where they currently are! Thanks alot!
I teach beginning Java at a tech school. I understand what casting is - converting a higher data type to a lower data type...my question is practical application...What would be a situation in which you would WANT to lose the decimal places in a float & convert it to an int?, etc. In your...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.