How can I implement this functionality?
ApplicationConstants.phoneContacts.add( new ContactNumberBean(nameOfContact, contactNumber, contactNumberType));
Classes ApplicationConstants and ContactNumberBean
ContactNumberBean:
package com.example.AddressBook; public class ContactNumberBean { private String nameOfContact; private String contactNumber; private int contactNumberType; public String getnameOfContact() { return nameOfContact; } public String getcontactNumber() { return contactNumber; } public int getcontactNumberType() { return contactNumberType; } public ContactNumberBean(String nameOfContact, String contactNumber,int contactNumberType) { this.nameOfContact=nameOfContact; this.contactNumber=contactNumber; this.contactNumberType=contactNumberType; } }
ApplicationConstants:
package com.example.AddressBook; import java.util.ArrayList; public class ApplicationConstants {
please send some solution, thanks in advance .... Narasimha
Narasimha
source share