Advertisement
Guest User

Untitled

a guest
Sep 30th, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. public class Job {
  2. /**
  3. * Processing time
  4. */
  5. private int time;
  6.  
  7. /**
  8. * Due time
  9. */
  10. private int due;
  11.  
  12. public Job(int t, int d) {
  13. time = t;
  14. due = d;
  15. }
  16.  
  17. public int getTime() {
  18. return time;
  19. }
  20.  
  21. public int getDue() {
  22. return due;
  23. }
  24.  
  25. public String toString() {
  26. return "Job(time="+time+",due="+due+")";
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement