java中-->是什么意思,还有parseInt的用法
以这段代码为例。急求解。importjava.util.*;classMain{publicstaticvoidmain(String[]args){IsSubStrin...
以这段代码为例。
急求解。
import java.util.*;
class Main
{
public static void main(String[] args)
{
IsSubString iss = new IsSubString();
Scanner scanner = new Scanner(System.in);
// Get test cases.
String str = scanner.nextLine();
int t = Integer.parseInt(str);
while(t-->0){
String sub = scanner.nextLine();
String mother = scanner.nextLine();
System.out.println(iss.isSubString(sub,mother));
}
}
} 展开
急求解。
import java.util.*;
class Main
{
public static void main(String[] args)
{
IsSubString iss = new IsSubString();
Scanner scanner = new Scanner(System.in);
// Get test cases.
String str = scanner.nextLine();
int t = Integer.parseInt(str);
while(t-->0){
String sub = scanner.nextLine();
String mother = scanner.nextLine();
System.out.println(iss.isSubString(sub,mother));
}
}
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询