📜  这个的输出 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:52.789000             🧑  作者: Mango

代码示例1
import java.util.Scanner;
public class LearnScanner {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("Welcome!");
System.out.print("What is your name?");
String name = input.next();
System.out.println("Hello " + name);
}
}