Groovy中Map类型的按值排序
执行结果:
b,1
d,2
a,3
c,4
声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。
- 上一篇: c#之webapi
- 下一篇: 【Unity3D】常用API学习笔记
(int)a.value - (int)b.value }.each { println "${it.key},${it.value}" } 执行结果: b,1 d,2 a,3 c,4 " />
执行结果:
b,1
d,2
a,3
c,4