scanner3

package li;

import java.util.Scanner;

public class Demo3 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("请输入");
String str = scanner.nextLine();

    System.out.println("输出:"+str);
    scanner.close();
}

}

posted @ 2021-10-19 14:42  xxm555  阅读(23)  评论(0编辑  收藏  举报