Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Customer {
- private final int id;
- private final double arrival;
- Customer(int idtag, double arrivaltime){
- this.id = idtag;
- this.arrival = arrivaltime;
- }
- int giveID(){
- return this.id;
- }
- double giveArrival() {
- return this.arrival;
- }
- @Override
- public String toString() {
- return String.format("%d arrives at %.1f", id, arrival);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement