title: How to read the txt file data into arraylist
body: <p>This following data is inside the Admin.txt file</p>
  
  <p>id, username, password, name, email, contactNumber, icNumber</p>
  
  <pre><code>AD001|admin|admin|admin|admin@gmail.com|0123456789|931245678976
  AD002|jeff|jeff|jefferyleo|jefferyleo@gmail.com|12345678790|941457431246
  </code></pre>
  
  <p>how should I read these data into an arraylist??</p>
  
  <pre><code>List&lt;Admin&gt; adminList = new ArrayList&lt;Admin&gt;();
  </code></pre>
  
  <p>This is the arrayList that I decalred.</p>
  
  <pre><code>BufferedReader br = new BufferedReader(new FileReader("Admin.txt"));
  String strLine;
  while((strLine = br.readLine()) != null)
  {
       String[] values = strLine.split("|");
       adminList.add(new Admin());
  }
  </code></pre>