Guest User

Untitled

a guest
Jun 15th, 2014
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. public class CharNode
  2. {
  3. private char _data;
  4. private int _value;
  5. private CharNode _next;
  6. public CharNode(char c, int val, CharNode n) {
  7. _data = c;
  8. _value = val;
  9. _next = n;
  10. }
  11. public CharNode getNext( ) { return _next; }
  12. public void setNext(CharNode node) { _next = node; }
  13. public int getValue() { return _value; }
  14. public void setValue(int v) { _value = v; }
  15. public char getData() { return _data; }
  16. public void setData(char c) { _data = c; }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment