java - Scanner.scanner = new Scanner 报错,为什么?如何解决?
伊谢尔伦
伊谢尔伦 2017-04-17 17:38:51
0
3
1313

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(3)
Peter_Zhu

Scanner scanner

阿神

Don’t put dots behind Scanner.

        Scanner scanner=new Scanner(System.in);
        int in = scanner.nextInt();
阿神

There cannot be any dot after Scanner. What your code means is: new object.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template