Description
Task: MaxMin
Description: Write a program that finds the largest and the smallest element in an array of integers. In this task, you have to implement 2 methods.
• private int findMax(int[] array)
Takes an integer array as an argument and returns the largest value.
• private int findMin(int[] array) {
Takes an integer array as an argument and returns the smallest value.
Sample Run:
Throughout the task, you have to write your code only between these two comment lines:
// Your code starts here
// Your code ends here




Reviews
There are no reviews yet.