Answers for ": Write a program to accept 20 integers elements and display the maximum and minimum element from the array.in java"

0

find min in array java

private static int findMin(int[] array) {
		int min = array[0];
		for(int i=1;i<array.length;i++) {
			if(min > array[i]) {
				min = array[i];
			}
		}
		return min;
	}
Posted by: Guest on May-10-2020

Code answers related to ": Write a program to accept 20 integers elements and display the maximum and minimum element from the array.in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language