Advertisement
Guest User

Untitled

a guest
Apr 20th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. public class Main {
  2.  
  3. public static void main(String[] args){
  4.  
  5. int trailingZeroes = Integer.numberOfTrailingZeros("R".hashCode()) + 1;
  6. System.out.println("A".hashCode());
  7.  
  8. HashPipe hp = new HashPipe();
  9. hp.put("S", 0);
  10. hp.put("E", 1);
  11. hp.put("A", 2);
  12. hp.put("R", 3);
  13. hp.put("C", 4);
  14. hp.put("H", 5);
  15. hp.put("E", 6);
  16. hp.put("X", 7);
  17. hp.put("A", 8);
  18. hp.put("M", 9);
  19. hp.put("P", 10);
  20. hp.put("L", 11);
  21. hp.put("E", 12);
  22.  
  23.  
  24. hp.printContent(0);
  25. hp.printContent(1);
  26. hp.printContent(2);
  27. hp.printContent(3);
  28. hp.printContent(4);
  29.  
  30. System.out.println(hp.control("E",0));
  31. System.out.println(hp.control("L",0));
  32. System.out.println(hp.control("L",2));
  33.  
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement