选择题
编程题
题目1
import java.util.Scanner;public class Main { public static void main(String[] args) {Scanner sc = new Scanner(System.in);char[] c1 = sc.nextLine().toCharArray();char[] c2 = sc.next().toCharArray();//取c2[0]if(c2[0]>='A' && c2[0]<='Z')c2[0]^=32;int sum = 0;for(int i=0;i<c1.length;i++) {if(c1[i]>='A' && c1[i]<='Z')c1[i]^=32;if(c1[i] == c2[0])sum++;}System.out.println(sum);sc.close();}
}