Create Array Using Dynamic Memory Allocations In Java