I have this class
class Customer{
int ID;
Time arriveTime;
Time serviceTime;
Time completeTime;
int transaction;
}
Don\'t I
You didn't define a constructor at all, so the default constructor will be added for you. It will, however, not set any of those fields, so you'll have to go:
Customer c = new Customer();
c.ID = 34
And so on. A couple of things:
c.ID but others won't. You might want to declare them public