17
2017
09

mac(osx) java8 uninstall

mac 下的 jdk 很容易删不干净,导致重装费劲。详细删除特记录于此http://stackoverflow.com/questions/19039752/removing-java-8-from-macsudo rm -rf /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdksudo rm -rf /Library/PreferencePanes/JavaControlPanel.prefPanesudo rm -rf /Library/In
16
2017
09

Java遍历HashMap的四种方法

public static void main(String[] args) {   Map<String, String> map = new HashMap<String, String>();   map.put("1", "value1");