---------------------------------------------------------------------- 还括以 0.0 ---------------------------------------------------------------------- 算法 import java.util.*; public class Main { public static void main(String[] args) { for(int a=0;a<2;
查找某个字串出现的次数及位置 public class search { public static void main(String[] args){ String str = "abc123abcd1234"; String searchStr ="bc"; int count = getStrCount(str,searchStr); System.out.println("count is: "+ count); } public sta