When i run following it runs successfully :
import java.util.*;
public class god {
public void main() {
int chalnabey;
Scanner in=new Scanner(System.in);
System.out.println("t");
}
}
But when i add another line to assign input to variable, the left side red loader goes non-stop progressing and my code never runs !
import java.util.*;
public class god {
public void main() {
int chalnabey;
Scanner in=new Scanner(System.in);
chalnabey=in.nextInt(); //This is addition line to previous code
System.out.println("t");
}
}
Can anybody tell why this happens and how to correct it ?