title: Converting a List<String> to an Array[] and binding to ListView in android
body: <p>This is my code</p>
  
  <pre><code>ListView listQuestions = new ListView(getApplicationContext());
  ArrayAdapter&lt;String&gt; arrayAdapter = new ArrayAdapter&lt;&gt;(this,android.R.layout.simple_list_item_1,AllQuestions.toArray(new String[AllQuestions.size()]));
  listQuestions.setAdapter(arrayAdapter);
  </code></pre>
  
  <p>it keeps throwing error</p>
  
  <p>this is the error from logcat</p>
  
  <p>Question cannot be stored in destination array of type java.lang.String[]</p>