title: Store java arrays to file for read and write
body: <p>I am fairly new to StackOverflow so I'm sorry if this question is not written correctly.</p>
  
  <p>I'm currently learning java and I'm looking for a way to store a set of arrays as a file so that changes to the array will persist between different instances of the program. I would need to read an write any changes to the best times list to a file.</p>
  
  <p>I have done some research into storing arrays but most of what I've read seems to only store a simple array of strings, integers, ect. These arrays are a little bit more complex so I'm not sure how to do it.
  I don't expect anyone to write all of my code for me but I could use some help on knowing where to start.</p>
  
  <p>This is the sample data that would need to be stored. These are best times for a java game.</p>
  
  <p>Are there methods to store this kind of data in a file of some sort?</p>
  
  <pre><code>public class BestTimes 
      {
          BestTimes[] beginner = new BestTimes[10];
          BestTimes[] intermediate = new BestTimes[10];
          BestTimes[] expert = new BestTimes[10];
  
          public BestTimes() {
          beginner[0] = new BestTimes(1, "John", 10.5);
          beginner[1] = new BestTimes(2, "James", 20.3);
          beginner[2] = new BestTimes(3, "Jill", 30);
          beginner[3] = new BestTimes(4, "Bill", 35);
          beginner[4] = new BestTimes(5, "Kevin", 40);
          beginner[5] = new BestTimes(6, "Nate", 55);
          beginner[6] = new BestTimes(7, "Bob", 75);
          beginner[7] = new BestTimes(8, "Dan", 85);
          beginner[8] = new BestTimes(9, "Amy", 93);
          beginner[9] = new BestTimes(10, "Jane", 100);
  
          intermediate[0] = new BestTimes(1, "John", 110.5);
          intermediate[1] = new BestTimes(2, "James", 120.3);
          intermediate[2] = new BestTimes(3, "Jill", 130);
          intermediate[3] = new BestTimes(4, "Bill", 135);
          intermediate[4] = new BestTimes(5, "Kevin", 140);
          intermediate[5] = new BestTimes(6, "Nate", 155);
          intermediate[6] = new BestTimes(7, "Bob", 175);
          intermediate[7] = new BestTimes(8, "Dan", 185);
          intermediate[8] = new BestTimes(9, "Amy", 193);
          intermediate[9] = new BestTimes(10, "Jane", 200);
  
          expert[0] = new BestTimes(1, "John", 210.5);
          expert[1] = new BestTimes(2, "James", 220.3);
          expert[2] = new BestTimes(3, "Jill", 230);
          expert[3] = new BestTimes(4, "Bill", 235);
          expert[4] = new BestTimes(5, "Kevin", 240);
          expert[5] = new BestTimes(6, "Nate", 255);
          expert[6] = new BestTimes(7, "Bob", 275);
          expert[7] = new BestTimes(8, "Dan", 285);
          expert[8] = new BestTimes(9, "Amy", 293);
          expert[9] = new BestTimes(10, "Jane", 300);
          }
  
      public int ranking;
      public String playerName;
      public double time;
  
      public BestTimes(int r, String p, double t) 
      {
          ranking = r;
          playerName = p;
          time = t;
      }
  }
  </code></pre>