一个简单的Scanner类的next()方法例子,最适合小白参考Scanner a = new Scanner(System.in); String v = a.next(); System.out.print("你输入的值是:"+ v); Scanner b = new Scanner(System.in); String q = b.next(); System.out.print("当前的2值是:"+q); System.out.print("\n"+"是否要一起显示?(输入 yes或no)"); Sca