Advertisement
Guest User

Untitled

a guest
Sep 26th, 2020
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1.  
  2. public class Customer {
  3. private final int id;
  4. private final double arrival;
  5.  
  6. Customer(int idtag, double arrivaltime){
  7. this.id = idtag;
  8. this.arrival = arrivaltime;
  9. }
  10.  
  11. int giveID(){
  12. return this.id;
  13. }
  14.  
  15. double giveArrival() {
  16. return this.arrival;
  17. }
  18.  
  19. @Override
  20. public String toString() {
  21. return String.format("%d arrives at %.1f", id, arrival);
  22. }
  23. }
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement