You can use Google API for Java...
You need to download the Google kit from
http://www.google.com/apis/download.html. The free
downloadable kit contains:
+A complete API reference describing the semantics of
method calls and fields
+A Google Web API WSDL file
+A Java library, example program, and Javadoc
documentation
+more...