0

{6,12,4,7,9}


How do i write a method name serachMax that receives the list above (as an array of integer) as it's argument and return the largest value in the list

and

How do i create a method name countitem that receives that list above (as a referenced based linked list of integers) as it's argument and returns the largest value in the list

5
Contributors
4
Replies
5
Views
10 Years
Discussion Span
Last Post by MacGyver Orca
0

Hint: Search for bubble sort.

Once you've successfully done that, then you can start to think about creating a function or method for it.

0

{6,12,4,7,9}
How do i write a method name serachMax that receives the list above (as an array of integer) as it's argument and return the largest value in the list

Hint: for loop

How do i create a method name countitem that receives that list above (as a referenced based linked list of integers) as it's argument and returns the largest value in the list

Hint: while loop

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.