Computer Science, asked by Surose1328, 10 months ago

Find the smallest and second smallest element in an array

Answers

Answered by SnehaG
1

Explanation:

We can find the second smallest number in an array in java by sorting the array and returning the 2nd element. Let's see the full example to find the second smallest number in java array.

Similar questions