importjava.util.Scanner;publicclassReadStringFromKeyboard{publicstaticvoidmain(String[]args){// 创建Scanner对象Scannerscanner=newScanner(System.in);// 从键盘读入一行字符串System.out.print("请输入字符串: ");Strings=scanner.nextLine();// 打印读取的字符串System.out.println("输入的字符串是: "+s);/...