Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package halfmancode;
- /**
- *
- * @author ZEK
- */
- // Class that carries each character and it's binary code
- class CharCode {
- private char letter;
- private String code;
- public CharCode(char letter, String code) {
- this.letter = letter;
- this.code = code;
- }
- public char getLetter() {
- return letter;
- }
- public void setLetter(char letter) {
- this.letter = letter;
- }
- public String getCode() {
- return code;
- }
- public void setCode(String code) {
- this.code = code;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment