So i have an UML diagram from wich i must define my code for my Customer class , and the start of the diagram attributes is with that -accounts : Account = new Account() , so i typed for it : private Account = new Account() accounts; and then i get the compilation error <identifier> expected so i am stuck i am new so dont blame me a lot :) anyone who can suggest me a solution i will be very greatful i mean how the code must look for this

write this:
private Account accounts = new Account();

thank you a lot :)

Finally, this is first time I've seen in this forum someone start a thread with the title:'Need help' and not asking for the solution to his homework without having written any code for himself.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.