title: Google Sheets API v4 Appending data getting bad request 400 error
body: <p>I am trying to append Sheets row, I am trying to put 2 Strings in single row in 2 columns. </p>
  
  <p>Here is the code:</p>
  
  <pre class="lang-java prettyprint-override"><code>String range = "Write!A2:E200";
  String spreadsheetId = SPREADSHEET_ID;
  List&lt;List&lt;Object&gt;&gt; values = Arrays.asList(Arrays.asList());
  
  ValueRange body = new ValueRange().setValues(values);
  AppendValuesResponse result = service.spreadsheets()
      .values()
      .append(spreadsheetId, range, body)
      .setValueInputOption("USER_ENTERED")
      .execute();
  </code></pre>
  
  <p>When I try to to add:</p>
  
  <pre class="lang-java prettyprint-override"><code>values.add(new ArrayList&lt;Object&gt;(ListOfMyTwoStrings));
  </code></pre>
  
  <p>I am getting the null error.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>I have added:</p>
  
  <pre><code>List&lt;Object&gt; lists = new ArrayList&lt;&gt;();
  lists.add(ListOne);
  lists.add(ListTwo);
  
  List&lt;List&lt;Object&gt;&gt; values = new ArrayList&lt;&gt;();
  values.add(lists);
  </code></pre>
  
  <p>Where <code>ListOne</code> and <code>ListTwo</code> are <code>List&lt;String&gt;</code> with the data which I want to append in the sheet, but when I try to execute I am getting:</p>
  
  <pre><code>400 Bad Request
  {
    "code":400,
    "errors":[
      {
        "domain":"global",
        "message":"Invalid values[1][0]: list_value {\n}\n",
        "reason":"badRequest"
      }
    ],
    "message":"Invalid values[1][0]: list_value {\n}\n",
    "status":"INVALID_ARGUMENT"
  }
  </code></pre>
  
  <p>Can someone please help me to fix it?
  Thank you and have a nice day!</p>