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

 

findMinValue


Write a method that accepts an array of integers as a parameter, and which returns the smallest value in that array. For example if the array {-3, -2, -6} was passed to the method, it would return -6. If an empty array is passed to the method, it should return -999.


findMinValue([-3, -2, -6]) → -6
findMinValue([111, 222, 3333, 22]) → 22
findMinValue([]) → -999

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

public int findMinValue(int [] a){ }

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

Copyright Nick Parlante 2017 - privacy