Scanner in = new Scanner(System.in);
int number = in.nextInt();
while(number != null){
if(number == 1){
System.out.print("you have locked in to the data base");
}else{
System.out.print("you enter the wrong key");
}
}
มันขึ้น
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - incomparable types: int and <nulltype>
at javaapplication1.JavaApplication1.main(JavaApplication1.java:23)
Java Result: 1