public class Solution {public static int FirstNotRepeatingChar(String str){ int len = str.length(); HashMap<Character,Integer> map = new HashMap<>(); //统计字符串中所有字符出现的次数,K为索引,V为出现次数 for (int i = 0; i < len; i++) { if(!Character.isUpperCase(str.charAt(i))){ ...