Scanner 的练习 。。。。依然不懂用法。。。苦恼
package com.b; import java.util.Random; import java.util.Scanner; public class Core { public static void main(String[] args) { Scanner c = new Scanner(System.in); System.out.println("------猜拳游戏-----"); System.out.println("请出拳:(1.剪刀 2.石头 3.布)"); int m = c.nextInt(); System.out.println("请输入你的学号"); String name = c.next(); } }