0
Input 5 numbers and display the highest and lowest number.
Using one dimensional array
2 ответов
+ 9
Create an array, collect 5 numbers into that array, sort the array from highest to lowest, use a for loop to start from 0 and go to n where n is the size of the array, and have it print what it finds at the index.
+ 7
Using Java 8 stream API:
https://code.sololearn.com/ccFaEwUMM1ov/?ref=app