Hi, if you're using a StringTokenizer with ' ' as delimiter character, use it with returnDelims enabled. Count all tokens which are equal to " " and that should do it.
Hi, maybe you should use two interfaces, a 'basic' interface with one method and another one extending it where you may add the second method. Greetings, Tom
Hi, let me give you some clues. - 'nextToken' is a method. --> nextToken() - String has no methods 'append' or 'insert'. - The first character in a String is charAt(0). This should make the it a little bit easier, at least for the compiler