4.22(检测子串)编写一个程序,提示用户输入两个字符串,检测第二个字符串是否是第一个字符串的子串。 4.22(Check substring) Write a program that prompts the user to enter two strings, and reports whether the second string is a substring of the first string. 下面是参考答案代码: import java.util.*; public class CheckSubstringQuestion22 { public static void