Page 1201 - AP Computer Science A, 7th edition
P. 1201

5. (C) If s.length() < 4 for all strings in wordList, then SHORT WORD will be printed on each pass through the for loop. Since t here are wordList.size() pas s es t hrough t he loop, t he maximum number of times that SHORT WORD can be printed is wordList.size().


































































































   1199   1200   1201   1202   1203