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

 

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

Write a method that finds the largest integer in an array of integers. Return the largest integer. However, if there are ties for largest integer, return 0. The array will contain at least one integer.


stingFindLargest([4, 7, 3, 3, 4, 8]) → 8
stingFindLargest([9, 1, 4, 5, 7, 7]) → 9
stingFindLargest([-5, -12, -3, -2, -17]) → -2

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

public int stingFindLargest(int[] num) { }

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: 290

Copyright Nick Parlante 2017 - privacy