Enter ten different number and find out the max and min using for loop in bluej
Answers
Answered by
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
Math,
4 months ago
Social Sciences,
4 months ago
Science,
10 months ago
Social Sciences,
10 months ago
Political Science,
1 year ago