Find Largest & Smallest Number in Array in Java | Arrays Class 10 | ICSE Important Array Question

Опубликовано: 23 Февраль 2026
на канале: Learn Easily - By Anurag
4,604
224

In this video, I explain how to write a Java program to accept 10 numbers in a Single Dimensional Array and display the Greatest (Largest) and Smallest (Minimum) numbers. This is a very frequently asked question in ICSE Class 10 Computer Applications board exams.

We will cover:

How to input 10 integers into an array using a loop.
The logic to initialize max and min variables.
How to compare each element to find the largest and smallest values.
Printing the final result.

💡 Logic Used:
We assume the first element (index 0) is both the maximum and minimum, then compare it with the rest of the array elements inside a loop.

📌 Key Topics Covered:
Single Dimensional Arrays in Java
Find Maximum and Minimum element in an Array
ICSE Class 10 Important Array Programs
BlueJ Array Programs for Beginners
Linear Search Logic in Java

#JavaProgramming #ICSEClass10 #ComputerApplications #LearnEasilyByAnurag #JavaArrays #BlueJ

Don't forget to Like, Share, and Subscribe for more ICSE Computer Science content!