package utils; import java.util.HashMap; import java.util.List; import java.util.Map; public interface Utils { public static Map userAttrNum =new HashMap<>() { { userAttrNum.put("administrator",5); userAttrNum.put("student",7); userAttrNum.put("teacher",8); } }; public static String toUpperFirstChar(String string) { char[] charArray = string.toCharArray(); charArray[0] -= 32; return String.valueOf(charArray); } public static List formatUserInfo(String userType, List userInfo){ for(int i=0;i