Use a Map > i.e. you map a string to a list of integers. So, in this case, name1 would map to a list of [1,3,3]. ... Java HashMap duplicate elements.
確定! 回上一頁