This following data is inside the Admin.txt file
id, username, password, name, email, contactNumber, icNumber
AD001|admin|admin|admin|admin@gmail.com
Perhaps this code can help you
public static void main(String[] args) throws Exception{
BufferedReader br = new BufferedReader(new FileReader("Admin.txt"));
ArrayList al = new ArrayList();
String line = null;
while ((line = br.readLine()) != null) {
Admin admin = new Admin();
String lines[] = line.split("|");
/*adjust accordingly
admin.setName(lines[0]);
admin.setUser(lines[1]);
....*/
al.add(admin);
}
br.close();
}