Discuss the below:
Q: Create a Java application that takes user input from the keyboard, and searches for this input in a predefined sorted array.
Use following sequence to create the predefined sorted array in the application:
1, 3, 4, 7, 8, 9, 10, 12, 18, 19, 20