How To Convert Object Into Array In Java