add solutions for hw6:Base
Some checks failed
Fast Reverse Tests / test (push) Successful in 24s
Reverse Tests / test (push) Successful in 7s
Sum Tests / test (push) Successful in 7s
Word Stat Tests / test (push) Successful in 7s
Word Stat++ Tests / test (push) Failing after 11s

This commit is contained in:
2026-02-02 14:32:45 +05:00
parent dec9762ba2
commit ddba0fc8b5
4 changed files with 76 additions and 8 deletions

View File

@@ -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 {