I experimented with java code that expected user input. However, I am unable to type anything in the Visual Studio Code Editor's designated space. To fix this issue, I installed the Java Development Pack Extensions, but nothing worked.
import java.util.Scanner;
public class App {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int age;
System.out.println("Enter age:");
age= sc.nextInt();
}
}
I used Visual Studio Code editor to try and get user input; normally, I use Intellij Idea editor. As a result, I am unable to type anything on the console to provide input when using the Visual Studio Code Editor to write Java programs. So, please offer your assistance in finding a solution.