RU beehive logo ITEC dept promo banner
ITEC 120
2012fall
dbraffitt
ibarland

homeinfolectslabsexamshws
tutor/PIsbreeze (snow day)
Object120 + its docsjava.lang docsjava.util docs

lect12b

Today we will continue talking about how to write our version of the book's letter-count program, started in lab12ab—week12 labs.
Also, an example of actually using the String[] args passed to main!


Not reached:

Then, we will generalize countOccurrences to work not just on individual strings, but entire arrays of strings.

To think about: how to write boolean containsInside(String,String): Does one string occur inside another?
Hint: what is a simpler helper-function, solving a related-but-simpler problem, that could be useful here?

homeinfolectslabsexamshws
tutor/PIsbreeze (snow day)
Object120 + its docsjava.lang docsjava.util docs


©2012, Ian Barland, Radford University
Last modified 2012.Nov.14 (Wed)
Please mail any suggestions
(incl. typos, broken links)
to ibarlandradford.edu
Powered by PLT Scheme