Contacts application - java