import java.util.*;
public class TestMap
{
public static void main(String [] args)
{
HashMap<String,Integer>scores=new HashMap<String,Integer>();
scores.put("Kathy",42);
scores.put("Bert",343);
scores.put("Skyler",420);
System.out.println(scores);
System.out.println(scores.get("Bert"));
}
}
Map范例
最新推荐文章于 2023-05-30 11:50:33 发布