help in java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

help in java

the help in java Hello guys, I want java code or a way to write the code ... Requirements for output: 1-print 2-max 3-min 4- sum 5-exit ___________ |5|6|4|5|6 |3|2|1|4|5 |5|6|4|3|7 تعرف لحلها

26th Feb 2021, 4:59 AM
yous
yous - avatar
4 Answers
+ 4
Please, do not ask questions repeatedly. https://www.sololearn.com/Discuss/2706377/?ref=app
26th Feb 2021, 5:58 PM
Shivani 📚✍
Shivani 📚✍ - avatar
0
yousef thnyan alhazmi Show your attempts first.
26th Feb 2021, 6:24 AM
A͢J
A͢J - avatar
0
You can use as banner in main function System.out.println("1-print\n2-max\3-min\n4-sum\n5-exit"); Then ask user for choice input. Note in java there are built in function min max so don't need to create min and Max. System.out.println(Math.min(a,b)); For array use Instream.of(array_name).min().or else(Integer.MIN_VALUE);
26th Feb 2021, 10:23 AM
HBhZ_C
HBhZ_C - avatar