title: How to add data to type List<List<Object>>
body: <p>I am attempting to create an android app using android studio and I want to be able to upload data that the user inputs to google sheets. </p>
  
  <p>I have looked over the google sheets API and I believe I have set up all the necessary dependencies correctly. The problem I am running into is adding data to the data type ValueRange using the built in method setValues().</p>
  
  <p>The documentation says for ValueRange has the following method for setValues</p>
  
  <pre><code>public ValueRange setValues(java.util.List&lt;java.util.List&lt;java.lang.Object&gt;&gt; 
  values)
  </code></pre>
  
  <p>And the google sheets API documentation gives the following example for how to use the setValues() method </p>
  
  <pre><code>List&lt;List&lt;Object&gt;&gt; values = Arrays.asList(
      Arrays.asList(
              // Cell values ...
      )
      // Additional rows ...
  );
  ValueRange body = new ValueRange()
      .setValues(values);
  </code></pre>
  
  <p>When I tried to add my own data I get the following error.</p>
  
  <pre><code>List&lt;List&lt;Object&gt;&gt; values = Arrays.asList(Arrays.asList("hello world"));
  
  Incompatible types.
  Required: List&lt;java.util.List&lt;java.lang.Object&gt;&gt;
  Found: List&lt;java.util.List&lt;java.lang.String&gt;
  </code></pre>
  
  <p>So my question is how do I add my data to type <code>List&lt;List&lt;Object&gt;&gt;</code> ?</p>