Version: 2.1 Update

This commit is contained in:
AnonymousUser
2021-09-12 15:23:54 +08:00
parent 5c326d3ca6
commit 5d9f590977
3 changed files with 19 additions and 6 deletions

View File

@@ -21,13 +21,18 @@ public class DoAction {
return result[0];
}
public List<String> highlightList(Map<String, Map<String, Object>> obj) {
public List<List<String>> highlightAndComment(Map<String, Map<String, Object>> obj) {
List<String> colorList = new ArrayList<>();
List<String> commentList = new ArrayList<>();
List<List<String>> result = new ArrayList<>();
obj.keySet().forEach(i->{
Map<String, Object> tmpMap = obj.get(i);
String color = tmpMap.get("color").toString();
colorList.add(color);
commentList.add(i);
});
return colorList;
result.add(colorList);
result.add(commentList);
return result;
}
}