7.10 Unit test and define the following method: /** * Removes the first and last 4-letter word from a given LinkedList * Each word will consist of letters only. * The worstTime(n) is O(n). * * @param list - the LinkedList * * @throws NullPointerException - if list is null. * @throws NoSuchElementException - if list is not null, but list has no 4-letter * words or only one 4-letter word. * */ public static void bleep (LinkedList | |
| View Solution | |
| << Back | |