系列文章目录
前言
提示:这只是一种解决思路。
美国加利福尼亚州的大学CS测试题。
一、算法是什么?
if。
二、使用步骤
1.引入库
代码如下 :
import com.sun.org.apache.bcel.internal.generic.IF_ACMPEQ; import java.util.*; public class HackerRankTest { public static void main(String[] args) { String srcStr="We promptly judged antique ivory buckles for the next prize"; String srcStr1="We promptly judged antique ivory buckles for the prize"; boolean checkStrIsSubStr = checkStrIsSubStr(srcStr); if (checkStrIsSubStr){ System.out.println("pangram"); }else { System.out.println("not pangram"); } boolean checkStrIsSubStr1 = checkStrIsSubStr(srcStr1); if (checkStrIsSubStr1){ System.out.println("pangram"); }else { System.out.println("not pangram"); } } /** * judge Str's Character appearence frequence is