Guest User

Untitled

a guest
May 2nd, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package halfmancode;
  7.  
  8. /**
  9. *
  10. * @author ZEK
  11. */
  12. // Class that carries each character and it's binary code
  13. class CharCode {
  14. private char letter;
  15. private String code;
  16.  
  17. public CharCode(char letter, String code) {
  18. this.letter = letter;
  19. this.code = code;
  20. }
  21.  
  22. public char getLetter() {
  23. return letter;
  24. }
  25.  
  26. public void setLetter(char letter) {
  27. this.letter = letter;
  28. }
  29.  
  30. public String getCode() {
  31. return code;
  32. }
  33.  
  34. public void setCode(String code) {
  35. this.code = code;
  36. }
  37.  
  38. }
Advertisement
Add Comment
Please, Sign In to add comment