Working with the Contacts API
So far, we have explored the basic idea behind the Contacts API by exploring its tables and views. We will now present a number of code snippets that can be used to explore contacts. These snippets are taken from the sample application that is developed to support this chapter. Although they are taken from the sample application, they are self sufficient to give a full picture. You can download the full sample program using the project download URL at the end of this chapter.
We will start our exercise by writing a program that can print out the list of accounts. We have already given the code snippets necessary to get a list of accounts. Consider the class
AccountsFunctionTester in Listing 30–13 ...