1. 核心源码
package cn.zixinyuan;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
/**
* <p>Project: zixinyuan - OracleUtil
*
* @author zixinyuanya [2991228540@qq.com]
* @version 1.0
* @since 17
*/
public class Ex4 {
public static List<List<String>> group(List<String> strs) {
HashMap<String, List<String>> map = new HashMap<>();
for (String s : strs) {
char[] cc = s.toCharArray();
Arrays.sort(cc);
String key = new String(cc);
if (!map.containsKey(key)) {
map.put(key,