Home > Back-end >  How to don't array in the Java on the keyboard input multiple lose and output the maximum and t
How to don't array in the Java on the keyboard input multiple lose and output the maximum and t

Time:10-13

How to don't array in the Java on the keyboard input multiple lose and output the maximum and the minimum

CodePudding user response:

Use the List, and then call sort sorting method

CodePudding user response:

Can use two variables of Max and min as the output, and then input the first number when the value is assigned to the two variables, and then compared with the two variables, the input to carry on the assignment, the final output maximum minimum value,

CodePudding user response:

Two values directly initialized to the value of the first input, and then follow-up with each incoming began to compare
  • Related