[DanoR][Java代碼][邏輯精簡--for循環遍歷Iterator迭代器]

博主有較強的強迫傾向!java 今天強迫症犯了,就想把代碼都精簡了! 結果發現一個關於for循環遍歷Iterator迭代器的精簡的寫法,利用邏輯代數實現。函數 定義:code HashMap<String, String> map = new HashMap<String, String>(); map.put("1","a"); map.put("2","b"); map.put("3","c"
相關文章
相關標籤/搜索