Short Answer QuestionsQ1. Write the java code for doing a Linear Search on the array given below. Write your code in the space below, (no need to submit .java file) What would your search method return if we asked to search for the number 2 and return it’s index position?[24][2][45][20]56][75][2][56][99][53][12]
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
30 | 31 | 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 1 | 2 | 3 |
Get Free Quote!
271 Experts Online