SyntaxFix
Write A Post
Hire A Developer
Questions
Try this one:
Data objt = new Data(name, address, contact); Contacts.add(objt);