Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static boolean isCharInNode(Character c, Node<Character> N)
- {
- Node<Character> 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;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement