查找“asdfjvjadsffvaadfkfasaffdsasdffadsafafsafdadsfaafd” 该字符串中有多少个af

package lovo.bean;

import java.util.Scanner;

public class Java {

@param args

public static void main(String[] args) {

// 1、查找“asdfjvjadsffvaadfkfasaffdsasdffadsafafsafdadsfaafd”
该字符串中有多少个af

TODO Auto-generated method stub

String bs = "asdfjvjadsffvaadfkfasaffdsasdffadsafafsafdadsfaafd";

int count = 0;

char[] charArray = bs.toCharArray();

for (int i = 0; i

上一篇:详解Eclipse断点


下一篇:Cookie 的设置和获取