結果 : how to store heterogeneous elements in array in java