結果 : how to create abstract data type in java