public class Demo {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("请输入第一个字符串");
String line = sc.nextLine();
System.out.println("恭喜你中奖了");
Scanner s = new Scanner(System.in);
System.out.println("请输入第二个字符串");
String line1 = s.nextLine();
System.out.println("你已成为一名合格的黑马学员");
}
}
import java.util.Scanner;
public class Demo {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("请输入第一个字符串");
String line = sc.nextLine();
System.out.println("恭喜你中奖了");