1 2 3 4 5 6 7 8 9 10 11 12 13 | /** * Post: all words that are exactly len letters long have been * removed from this WordList, with the order of the remaining words * unchanged. */ public void removeWordsOfLength( int len) { for (String s:myList){ if (s.length()==len){ myList.remove(s); } } } |

