Find Smallest Number in an Array Using Java

By: Prem Tiwari | Last Updated: | In: Java Tutorial


In this java program, I will share Java program to find the smallest number in an Array with an example. We have sorted the given array in ascending order and returning the first element. See the below example of finding the smallest number in java array using the Java programming language.

Find Smallest Number in an Array in Java

Copy the following Java program and execute it with the help of Java compiler.

Output

The smallest number:11


About: Prem Tiwari

Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.


Tags: , , , , , ,