Computer Science, asked by prabhupadajal15, 10 months ago

Enter ten different number and find out the max and min using for loop in bluej

Answers

Answered by Janukrishna
0

Answer:

Explanation:

Using Arrays. sort method to Find Maximum and Minimum Values in an Array

int[] nums={6,-1,-2,-3,0,1,2,3,4};

Arrays. sort(nums);

System. out. println("Minimum = " + nums[0]);

System. out. println("Maximum = " + nums[nums. length-1]);

Please mark me as brainliest

Similar questions