title: Reading whole Google Spreadsheet with Sheets API v4 Java
body: <p>I would like to read a Google Spreadsheet like described in the Java Quickstart</p>
  
  <p><a href="https://developers.google.com/sheets/quickstart/java" rel="noreferrer">https://developers.google.com/sheets/quickstart/java</a></p>
  
  <p>The Quickstart explaines how to read data from a give range</p>
  
  <pre><code>.....
  String range = "Class Data!A2:E";
  ValueRange response = service.spreadsheets().values()
          .get(spreadsheetId, range)
          .execute();
  
  List&lt;List&lt;Object&gt;&gt; values = response.getValues();
  ....
  </code></pre>
  
  <p>But I have the problem that I do not know the Range of the Spreadsheet. The number of columns can change. So how can I read for example all the data of the Sheet without knowing the range?</p>
  
  <p>Regards</p>
  
  <p>Michael</p>