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-
This code requires the user to input his name, now to enable user input, follow these steps in JDeveloper IDE
- Go to “Application” tab and select “Project Properties” in JDeveloper Menu
- Go to “Run/Debug profile” and edit default Run Configuration
- Go to “Tool Setting” and check the box “Allow Program Input” and All Done 🙂
- Now run this program and check an additional input box appears on the console
Cheers 🙂 Happy Learning
An Oracle ACE, Blogger, Reviewer, Technical Lead working on Oracle ADF