Here is a startup tutorial for you. Update with your progress, and good luck!
https://developers.google.com/sheets/api/quickstart/java