Javascript Push Object Into Array Of Pointers In Java