int b=new Scanner(System.in).nextInt();

这个在java中是什么意思?
2025-05-31 04:08:24
推荐回答(3个)
回答1:

int b=new Scanner(System.in).nextInt();意思是获取你在控制台输入的内容。你必须输入数字

例句
  1  It looks like we won't be buyingyour fancy new scanner.
  看起来我们不会买你的超级新扫描仪。
  2  The new scanner and nine technicians are on loan to Hopkins from Toshiba America Medical Systems Inc.
  新的扫描师和9个技师从东芝公司美国医疗系统有限公司租借至霍普斯金。
  3  The new scanner can also show damage and imperfections that might make the produce unappealing to shoppers.
  新的扫描仪也能显示产品中可能被购物者嫌弃的破坏及不完美之处。
  4  This paper puts forward a new scanner calibration method: subarea calibration, based on polynomial regression.
  该文在传统多项式回归法基础上给出了一种提高3-CCD扫描仪校正精度的新方法:分区校正。
  5  Using a new scanner to check this new brooder.
  利用新的扫描器来扫描这尾新种鱼。

回答2:

就是用键盘输入一个整型值,赋给b!给你拆开来看吧,看着简单点!
Scanner sc=new Scanner(System.in);//这个就是JAVA提供的一个输入类,你就照着写就行
int b=sc.nextInt();

回答3:

获取你在控制台输入的内容。你必须输入数字