java 输入string
程序员文章站
2023-09-07 20:51:50
import java.util.Scanner; String s; Scanner reader=new Scanner(System.in); System.out.println("input string: "); s=reader.nextLine(); ......
import java.util.scanner;
string s;
scanner reader=new scanner(system.in);
system.out.println("input string: ");
s=reader.nextline();
上一篇: 模板大全