如(String)map.get(key),(int)map.get(key)等。在是如果接收的類型為List,此時強轉(List<String>) obj則會報出警告。編譯會提示Unchecked cast ...
確定! 回上一頁