SyntaxFix
Write A Post
Hire A Developer
Questions
You have to use new operator here to instantiate. For example:
Contacts.add(new Data(name, address, contact));