|
// Java输入、存储、输出
|
|
package xiangmu;
|
|
import java.util.Scanner;
|
|
|
|
public class Ceshi {
|
|
public static void main(String args[]) {
|
|
System.out.print("请输入用户名:");
|
|
Scanner sc = new Scanner(System.in);
|
|
String yonghuming = sc.next(); // 变量
|
|
System.out.print("你好,"+yonghuming);
|
|
sc.close();
|
|
}
|
|
}
|