title: How to store array of data as a whole using shared preferences
body: <p>I have an array of string, size 100. I have entered data in this string array. Now, I want to store this array of string using <code>SharedPreferences</code>.</p>
  <p>So my question is that, is it possible to store the entire array of string instead of storing each string individually using <code>SharedPreferences</code>. If so, how that can be done.</p>
  <p>The code I have written is used to store data
  individually using the loop. But I want to store the entire string array without using the loop.</p>
  <p><strong>Code I have written for storing individually is</strong></p>
  <pre><code>SharedPreferences preferencesWrite  = c.getSharedPreferences(&quot;myPreferences&quot;, 0);
  SharedPreferences.Editor editor  = preferencesWrite.edit();
  
  for(int i=0; i&lt; 100; i++)
  {
      editor.putString(&quot;dtHistory&quot; + Integer.toString(i), m_dtHistory[i];
  
  }
  editor.commit();
  </code></pre>