Advertisement
rmword

Untitled

Oct 12th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. /**
  2. *
  3. * @author: Rifqi Mukti W
  4. * @version 12.10.2017
  5. */
  6. public class TestClockDisplay
  7. {
  8. // instance variables - replace the example below with your own
  9. private int x;
  10.  
  11. /**
  12. * Constructor for objects of class TestClockDisplay
  13. */
  14. public TestClockDisplay()
  15. {
  16.  
  17. }
  18.  
  19. public void test()
  20. {
  21. ClockDisplay clock = new ClockDisplay();
  22.  
  23. clock.setTime(22, 30);
  24. System.out.println(clock.getTime());
  25.  
  26. clock.setTime(00, 9);
  27. System.out.println(clock.getTime());
  28.  
  29. clock.setTime(13, 18);
  30. System.out.println(clock.getTime());
  31.  
  32. clock.setTime(07, 06);
  33. System.out.println(clock.getTime());
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement