Accessing the Google Geocoder with
Java is simple.
Here is how to construct the URL.
Be aware that there's a throttle on how many requests you can make per minute (you'll get HTTP errors if you send too many) and per day (50000 if I remember correctly)