import java.util.Scanner;class ThreadDemo{public static void main(String[] args) {Scanner sc=new Scanner(System.in);//sc.nextLine()是从窗口接收字符串并以回车为结束标示String str=sc.nextLine();System.out.println(str);//输出窗口中的字符串}}