
java
Dashingl
这个作者很懒,什么都没留下…
展开
-
字典排序
public static String DictionaryOrderUtil(Map<String, Object> paraMap) { StringBuilder paramUrl = new StringBuilder(); Collection<String> keySet = paraMap.keySet(); List list = new ArrayList<String>(keySet); Collections.sor原创 2020-08-31 15:37:07 · 118 阅读 · 0 评论 -
List转二维数组(PHP 要这种数组)
public class ListConvertArray { public static Map<String, Object> toMap(String name, List<?> objects) { try { Map<String, Object> result = new HashMap<>(); for (int i = 0; i < objects.size(); i++) {原创 2020-08-31 15:32:49 · 506 阅读 · 0 评论