Skip to content

Instantly share code, notes, and snippets.

@Godin
Created February 1, 2012 22:57
Show Gist options
  • Save Godin/1719993 to your computer and use it in GitHub Desktop.
Save Godin/1719993 to your computer and use it in GitHub Desktop.
Oracle JDK 1.6 vs IBM JDK 1.6
import org.junit.Test;
import java.util.HashMap;
import java.util.Map;
public class TestJdks {
@Test
public void test() {
Map<String, String> map = new HashMap<String, String>();
map.put("f", "1");
map.put("b", "2");
for (Map.Entry<String, String> entry : map.entrySet()) {
System.out.println(entry.getKey() + " = " + entry.getValue());
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment