RU beehive logo ITEC dept promo banner
ITEC 120
2010fall
ibarland

homeinfolectslabsexamshws
tutor/PIsjava.lang docsjava.util docs

lect03c
if-else (cont.)
and hw01, javadoc, ...

side notes on board:

When writing test cases:
 - When testing ints, include 0,1 if whenever sensible
   (and a negative number and a larger number)

 - When testing Strings, include a string of length 0 and a string of length 1
   whenever sensible (and a larger string)

 - When testing booleans, include both false and true.


Phrase:
 - the *purpose* of a local variable is to compute a partial result
    of the overall answer,
   giving a name to it so you can use it again in the following lines.

 - (Btw: ditto for "helper" functions.  E.g. helper bowtie
   for overall task smileyFace,
   which in turn is sometimes a helper for threeSmileys).

homeinfolectslabsexamshws
tutor/PIsjava.lang docsjava.util docs


©2010, Ian Barland, Radford University
Last modified 2010.Sep.17 (Fri)
Please mail any suggestions
(incl. typos, broken links)
to iba�rlandrad�ford.edu
Powered by PLT Scheme