How to implement methods? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to implement methods?

Although, I already did a working code. Where, sorts the integers in ascending order, computes the sum, and finds the smallest and largest number. I am now faced with a task that says: ---- You should create different method implementations for sorting the integers in ascending order, compute the sum, find the smallest number and find the largest number. The list of positive of positive integers should be stored in an array for easy implementation ---- I already search the internet but I still can't understand how to implement methods. If you know, can you show an example out of my code? https://code.sololearn.com/cVpf4LjAikrB/?ref=app

26th Sep 2021, 10:06 AM
Ali Abdul
2 Answers
+ 2
Ali Abdul And you have still only completed 1% of the Java course since you asked a variation of this question yesterday. Do the hard yards, do the course and learn!
26th Sep 2021, 10:43 AM
Rik Wittkopp
Rik Wittkopp - avatar