RU beehive logo ITEC dept promo banner
ITEC 120
2009spring
ibarland
nokie
jmdymacek

homeinfolectslabsexamshws
textbooktutor/PIsjava.lang docsjava.util docs

lect11b
searching for max
and, reading from a Scanner

If we finish these examples, we will talk about:


Future exercises:


1 However if you ever have a constructor which doesn't initialize a field, Java will let you compile in that case; then Java will initialize all your fields to "a zero-ish value" for you. If you ever see a nullPointerException it means you're using a field you never initialized. It is sound practice to always initialize all your fields yourself — if nothing else, you'll never have to look at your code later and wonder “gee, did I intend to leave the field uninitialized, or is there a latent bug hiding in this program?”.      

homeinfolectslabsexamshws
textbooktutor/PIsjava.lang docsjava.util docs


©2009, Ian Barland, Radford University
Last modified 2009.Apr.08 (Wed)
Please mail any suggestions
(incl. typos, broken links)
to iba�rlandrad�ford.edu
Powered by PLT Scheme