scanner常用方法(scanner的用法)

导读 ackage com.color.program.ball;import java.util.Scanner;public class ScannerTest { public static void main(String[] args)...

ackage com.color.program.ball;import java.util.Scanner;public class ScannerTest { public static void main(String[] args) { Scanner s = new Scanner(***.in); //receive string String str = s.next(); //receive integer Integer i = s.nextInt(); //receive double Double d = s.nextDouble(); System.out.println(str+i+d); }}。

免责声明:本文由用户上传,如有侵权请联系删除!