I need help with the following questions, I have answered
I need help with the following questions, I have answered the first
two (would like to make sure they are correct), but not the last one:
1. You have an int array named examScore that is 100 elements in length.
Provide a single line of code that would search the examScores for values that
are 50
Arrays.binarySearch(examScores,50);
2. You have an int array named examScores that is 1000 elements in length.
Provide a single line of code that would sort the examScores
Arrays.sort(examScores);
3. Describe an application that would be a good choice for using 3D array.
Provide the size of the array and the most likely data type.
Provide the specific Java nested loop you would use to populate the array elements with random values.