I am trying to write a value to a cell with Google Sheet API with Java. For reading I used guide from Java Quickstart which worked fine for me.
For writing to Google
Try replacing "Sheet1!A4:H" with A4:H