add solutions for hw6:Base
This commit is contained in:
@@ -22,7 +22,8 @@ public class WordScanner {
|
||||
|
||||
private boolean isWordChar(char c) {
|
||||
return Character.isLetter(c) || c == '\'' ||
|
||||
Character.getType(c) == Character.DASH_PUNCTUATION;
|
||||
Character.getType(c) == Character.DASH_PUNCTUATION ||
|
||||
c == '$' || c == '_';
|
||||
}
|
||||
|
||||
public boolean hasNextWord() throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user