What is the code in java to arrange the 3 numbers in ascending order without using array sorting ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the code in java to arrange the 3 numbers in ascending order without using array sorting ?

Please give the complete program

27th Oct 2019, 10:43 AM
Hemlata Agarwal
Hemlata Agarwal - avatar
2 Answers
0
Look up.... Integer.max, Integer.min and Integer.sum......and remember ....the methods can be nested. (just learning java myself....but i did manage to do it using the methods above).
27th Oct 2019, 1:35 PM
rodwynnejones
rodwynnejones - avatar
0
You also have to arrange the numbers that is i guess swapping
1st Nov 2019, 10:06 AM
Hemlata Agarwal
Hemlata Agarwal - avatar