标签:nbsp mat string 数字 dom math logs blog and
public class Vip { public static void main(String[] args) { Scanner scanner=new Scanner(System.in); System.out.println("请输入会员姓名:"); String name=scanner.next(); System.out.println("请输入会员性别:"); String sex=scanner.next(); System.out.println("请输入会员年龄:"); int age=scanner.nextInt(); System.out.println("创建会员成功!"); //生成4位10以内的数字 System.out.println("会员编号为" + (int)(Math.random()*9000+1000)); System.out.println("会员详细信息:"); System.out.println(name+"\t"+sex+"\t"+age); } }
标签:nbsp mat string 数字 dom math logs blog and
原文地址:http://www.cnblogs.com/ichimoku/p/7684819.html