Need a Little help in netbeans and eclipse..

Need a Little help in netbeans and eclipse..

Hi,

Hello there, Good day!! I just want to ask..because I am confused about this Netbeans and Eclipse IDE's..i know that they both come from Java Technology but why that some codes in eclipse doesn't run in netbeans coz usually I am using eclipse..just take a look at this code:

In eclipse
scanner input= new Scanner(System.in);
x=input.nextInt();

but why in netbeans that code is error and the correct one is this:
scanner input= new Scanner(System.in);
x=input.nextInteger();

and some more code which are not working in netbeans but working in eclipse!..pls help me

___________________

1 envío / 0 nuevos
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.