Implement theBubble Sortalgorithm in Java as a function the program asks you for 20 integers. the program will sort them using your Bubble Sort function
INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS
Implement the Bubble Sort algorithm in Java as a function. Write a program that uses this function in the following way:
The program asks you for 20 integers. You enter them, and then the program will sort them using your Bubble Sort function. It will print your sorted array. The program will then ask you to enter a number for which to search, and it will use (user-encoded) Binary Search to find the index of this number, which is then reported to the user.