About 3,190,000 results
Open links in new tab
  1. Java Program to Print the Smallest Element in an Array

    Sep 13, 2022 · We need to find and print the smallest value element of an array in this program. By maintaining a min element and updating it while traversing over the whole array if we …

  2. Finding the index of the smallest element in an array (Java)

    Aug 5, 2018 · I am trying to write up a block of code that takes an array of integers as an argument and returns the index of the smallest element in the array. Also, the function should …

  3. Java How To Find the Smallest Element in an Array - W3Schools

    How To Find the Smallest Element in an Array. Create a program that finds the lowest age among different ages:

  4. Java Program – Find Smallest Number of an Array - Tutorial Kart

    Java Smallest Number in Array - In this tutorial, we shall write Java Programs to Find the Smallest Number of an Integer, Float and Double Array using While Loop, For Loop and Advanced For …

  5. Java Program to find Smallest Number in an Array

    Sep 9, 2024 · We can find the smallest element or number in an array in java by sorting the array and returning the 1st element. Let's see the full example to find the smallest number in java array.

  6. Java 8 – Find Smallest number in an Arrays or List or Stream

    May 28, 2022 · In this article, we will discuss how to find smallest number in an Arrays and List using Java 1.8 version. In one of the previous article, already discussed to find largest …

  7. java - How do you find the smallest value of an ArrayList

    Mar 25, 2016 · Find the smallest value of an ArrayList using the Collection class. you are available with a collection class named min. This method returns the minimum element/value of the …

  8. Finding the Index of the Smallest Element in an Array

    May 4, 2024 · In this tutorial, we’ll learn how to find the index of the smallest element in an array. We’ll discuss the methods to do so regardless of the types of the elements, but for simplicity, …

  9. Find the smallest and second smallest elements in an array

    Mar 11, 2025 · Given an array arr[] of size N, find the smallest and second smallest element in an array. Examples: Input: arr[] = {12, 13, 1, 10, 34, 1} Output: 1 10 Explanation: The smallest …

  10. Java Program to Find the Smallest Number in an Array

    Dec 11, 2024 · Let’s see different ways to find smallest element in the array. By Comparing Array Elements; By Using Arrays.sort Method; By Using array list and collections; By Using Stream …

  11. Some results have been removed
Refresh