Sometimes we have to take input from Keyboard when we use Scanner or BufferedReader class.
and to take input from Jdeveloper we have to change a setting to allow user input in Jdeveloper.
Let's take an example of java.util.Scanner class-
and to take input from Jdeveloper we have to change a setting to allow user input in Jdeveloper.
Let's take an example of java.util.Scanner class-
package client; import java.util.Scanner; public class UserInput { public UserInput() { super(); } public static void main(String[] args) { System.out.println("Please Enter your Name-"); Scanner sc = new Scanner(System.in); String name = sc.next(); System.out.println("Your Name is " + name); } }