Console not opening when using scanner code

Scanner scn = new Scanner(System.in);
int n = scn.nextInt();
System.out.println(n);

Hey @adityakathoch_a87e00c5c7e39b2d If you’re using eclipse IDE then there will be a search icon at upper right corner click that and search console and open it manually . After doing this console will automatically gets open whenever you run your code.