如果要在Java的 Map 中放置多種型別的值,做法如下。 ... Map<String, Object> map = new HashMap<>(); Object o1 = 1; Object o2 = new Date(); ...
確定! 回上一頁