ArrayList<MArry> databas = new ArrayList<MArry>();
//Add data into the databas
databas.add(new MArry("Timothy", "SS1"));
databas.add(new MArry("Olayemi", "SS2"));
System.out.println("Student\tClass\n");
for (MArry myarry: databas) {
System.out.printf("%s \n", myarry);
}
/*Please I need someone to check this out.
Each time I run the code the output I'm getting is the memory address of the ArrayList */