id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

jebbert@volusia.k12.fl.us arrays > findMax
prev  |  next  |  chance

Write a method that returns the greatest value from an array of integers. The array will contain at least one element.


findMax([4, -5, 6, 20, -40, 10, 3, 0]) → 20
findMax([8, 8, 8, 8]) → 8
findMax([-7, -3, 0, -2]) → 0

...Save, Compile, Run (ctrl-enter)

public int findMax(int[] nums) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 450

Copyright Nick Parlante 2017 - privacy