![]() |
![]() |
|
home—info—lects—labs—exams—hws
tutor/PIs—java.lang docs—java.util docs
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 ).
home—info—lects—labs—exams—hws
tutor/PIs—java.lang docs—java.util docs
| ©2010, Ian Barland, Radford University Last modified 2010.Sep.17 (Fri) |
Please mail any suggestions (incl. typos, broken links) to ibarland |
![]() |