title: How to insert all the SQL table data into an array in java [android studio]
body: <p>I'm trying to get all the data in my sql server table and to insert it into an array.</p>
  
  <p>My table's name is "users" and I want to get all the names and emails and put 
  them inside an array <strong>like that:</strong></p>
  
  <p>[name,email,name,email,name,email......]</p>
  
  <p>I used volley while POSTING data to my sql server but i could not get any data.
  This is the first code i wrote and i don't know how to complete it:</p>
  
  <pre><code>private static Array GetData() {
  
      StringRequest strReq = new StringRequest(Method.POST,
              AppConfig.URL_GETDATA, new Response.Listener&lt;String&gt;() {  // URL_LOGIN is the php file which will extract the data
  
         ......
  </code></pre>