Re: "Identifier expected" problem

Any time you post a question about errors, please tell us which line is causing the errors, and show the actual error message itself. This will prevent us having to do a lot of guessing.

You seem to have added a second constructor to the class with the same signature as a constructor that's already present -- both take no parameters -- and you can't do this. You can only have one constructor like that. Plus the code in this second constructor is completely borked, and I recommend that you delete it (that bit of code on the end that begins with public Ticket() {...}) and rethink your design.

Re: "Identifier expected" problem

Oops I'm sorry I forgot it :S Ok thank you very much! I'll change it ! The problem is that I want these tickets to have an id for example 1 and every new ticket is being made I want this id to increase (example 2,3,4 etc)How can I do it?