for (int i = 0; i < words.length; ++i) {
this.words[i] = words[i];
}
this.length = words.length;
}
<BUG>public boolean accept(String input) {
for (int i = 0; i < length; ++i) {</BUG>
if (words[i].equals(input)) {
return true;
}

for (int i = 0; i < words.length; ++i) {
this.words[i] = words[i];
}
this.length = words.length;
}
public boolean accept(String input) {
switch (mode) {
case EXACT:
for (int i = 0; i < length; ++i) {
if (words[i].equals(input)) {
return true;
