public static boolean isCharInNode(Character c, Node N) { Node duplicate = N; if(duplicate == null) return false; while(duplicate.hasNext()) { if(c == duplicate.getValue()) return true; else duplicate = duplicate.getNext(); } if(c == duplicate.getValue()) return true; return false; }