Internet Question Interview Question
- 1of 1 vote
Write a method called createArray that accepts 4 parameters: number of rows, number of columns, a and b.- mimiaarabi August 05, 2017 in United States
This method creates a 2-D array of number rows and columns as given in the parameter, then fills the array
with random values between a and b.
Write another method called checkColumn which accepts the position of the column, the min and max
elements of the array as parameter and returns true if the column contains both the minimum value and
maximum value, false otherwise.
Finding the min and max can be done in the main.
Enter number of rows and columns: 3 2
Enter 2 integers: 25 40
Minimum: 26 Maximum: 39
Enter the position of the column to check: 0
Column 0 contains both min and max.
| Report Duplicate | Flag | PURGE
Internet Question Java
Interview Type: Written Test
Open Chat in New Window