e******r 发帖数: 220 | 1 I imported Scanner package, but the compiler still doesn't recognize
Scanner command. Why? Thanks
import java.util.Scanner;
public class test
{
public static void main(String[] args)
{
Scanner in =new Scanner(System.in); |
c*****t 发帖数: 1879 | 2 Probably wrong version of JDK.
【在 e******r 的大作中提到】 : I imported Scanner package, but the compiler still doesn't recognize : Scanner command. Why? Thanks : import java.util.Scanner; : public class test : { : public static void main(String[] args) : { : Scanner in =new Scanner(System.in);
|
h**d 发帖数: 474 | 3 看一下你的java version吧,scanner是java5才有的
【在 e******r 的大作中提到】 : I imported Scanner package, but the compiler still doesn't recognize : Scanner command. Why? Thanks : import java.util.Scanner; : public class test : { : public static void main(String[] args) : { : Scanner in =new Scanner(System.in);
|
h**d 发帖数: 474 | 4 nod
nod
nod
Probably wrong version of JDK.
【在 c*****t 的大作中提到】 : Probably wrong version of JDK.
|