Java While Loop Through Array Of Objects Definition In Java