Computer Science, asked by chandrakalamenaria90, 21 hours ago

write a program of smallest elements out of 10 elements of an array entered by the user ​

Answers

Answered by kumarabhinav2124
0

Answer:

Find Smallest Number in Array using Arrays

import java.util.*;

public class SmallestInArrayExample1{

public static int getSmallest(int[] a, int total){

Arrays.sort(a);

return a[0];

}

public static void main(String args[]){

int a[]={1,2,5,6,3,2};

Explanation:

make me brainliest pls

Similar questions