I'm assuming each PetRecord contains a name, age(?), and weight(?). Just the one will be enough.
Yes you are indeed correct, however I did find it headaching trying to make it work. I only used one array and try using the set methods/mutators. Something like this:
PersonArray[i].setName(InputStream.next());
PersonArray[i].setAge(InputStream.nextInt());
blah blah blah...
but I still get some error doing that. You have a suggestion on how I can write this better? because yeah i only chose the previous style beacuse I though it would be easier but now that I think about I'ma have serialize the array anyways from the petRecord class.