String str = "12300";String s = "!@#$%%^&";for(int i = 0 ;i < s.length();i++){if(str.contains(s.valueOf(s.charAt(i)))){System.out.println("包含");}else if(i>=s.length()-1){System.out.println("不包含");}}