public static void main(String[] args){ Map m = new HashMap(); m.put(1, "one"); m.put(2, "two"); m.put(3, "three"); for(int i = 0; i < m.size();i++){ System.out.println(m.get(i+1)); } } }大致就这意思
public static void main(String[] args){ Map m = new HashMap(); m.put(1, "one"); m.put(2, "two"); m.put(3, "three"); for(int i = 0; i < m.size();i++){ System.out.println(m.get(i+1)); } } }
62,612
社区成员
307,332
社区内容
加载中
试试用AI创作助手写篇文章吧