62,623
社区成员
发帖
与我相关
我的任务
分享
What will happen when you attempt to compile and run the following code snippet?
String str1, str2;
HashMap map = new HashMap();
str1 = (String) map.put("Color", "White");
str2 = (String) map.put("Color", "Blue");
System.out.println("Color : " + str1 + " " + "Color : " + str2);