【0624作业】使用Scanner类输入并显示会员卡号
作者:互联网
1 package com.work0624; 2 /** 3 * 练习题 4 * 使用Scanner类输入并显示会员卡号 5 * @author L 6 */ 7 import java.util.Scanner; 8 9 public class Work2 { 10 static Scanner sc = new Scanner(System.in); 11 public static void main(String[] args) { 12 System.out.println("请输入4位会员卡号:"); 13 int card = sc.nextInt(); 14 System.out.println("会员卡号是:" + card); 15 } 16 17 }
标签:会员卡,Scanner,System,0624,static,public,out 来源: https://www.cnblogs.com/yanglanlan/p/11079438.html