public class Test {
public static void main(String[] args) {
LinkedHashMap<String,String> a=new LinkedHashMap<String,String>();
a.put("a", "1");
a.put("b", "2");
a.put("c", "3");
for(String b:a.keySet()){
System.out.println(b+"值为:"+a.get(b));
}
}
}
输出为
a值为:1
b值为:2
c值为:3
想要倒序输出怎么实现
公開課測驗{
雷雷}