Java program to find minimum value in array

In this tutorial, Java program to find minimum value in an array.
Here is simple algorithm to find minimum value in the array.

  • Initialize sml with arr[0] i.e. first element in the array.
  • If current element is less than sml, then set sml to current element.

Output:

Enter array Size : 3
Enter array elements : 45 76 35
Searching for the Smallest Element….Smallest Element = 35

That’s all about Java program to find minimum value in an array

Was this post helpful?

Leave a Reply

Your email address will not be published. Required fields are marked *