Your original question did not mention the creating of a new document, only how to access contacts.
Based on your comment
thanks..now i am able get all the views present in names.nsf in the domino designer..but stil unable add a new contact
the code in Java to create a new document in the names.nsf database (once you have a handle on it) would be...
Document doc = dir.createDocument();
//fill in the necessary fields
doc.save();