I have this code in a reserved word boolean format:
private boolean isIdent(String t) {
if (equals(t, "final") || equals(t, "int") || equals(t, "while")
|| equals(t, "if") || equals(t, "else") || equals(t, "print")) return false;
if (t!=null && t.length() > 0 && Character.isLetter(t.charAt(0))) return true;
else return false;
}
I need to turn this into a HashSet format but unsure how to approach this. Any help would be most appreciated.