Visual Studio is being overly cautious. In debug mode, visual studio uses something called "Checked Iterators". Pointers are also iterators, but the checking mechanism doesn't work with them. So when a standard library algorithm is called wit
import java.util.Scanner; public class Number { private static Object i; /* *第一题 mingrikejijavabu中字符“i” 出现了几次,并将结果输出*/ public static void main(String[] args) { String r ="imingrikejijavabi"; //第一种 截取 int a=0; for(int j=0;j<r.length();j++){ St