Passing Array Of Objects As Arguments In Java