Guest User

Untitled

a guest
May 20th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. public static void decode(ArbreHuffman codage, String message) {
  2. ArbreHuffman a = codage;
  3. for (int i = 0; i < message.length(); i++) {
  4. if (message.charAt(i) == '0') {
  5. if (a.filsG == null) {
  6. a = codage.filsG;
  7. } else {
  8. if(a.character!='0')
  9. a.affiche();
  10. a = a.filsG;
  11. }
  12. } else {
  13. if (a.filsD == null) {
  14. a = codage.filsD;
  15. } else {
  16. if(a.character!='0')
  17. a.affiche();
  18. a = a.filsD;
  19. }
  20. }
  21.  
  22. }
  23. }
  24. }
Add Comment
Please, Sign In to add comment