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

 

davereed@creighton.edu > findSmallest
prev  |  next  |  chance

findSmallest() -- You are given an ArrayList of integers and want to determine the smallest number in that ArrayList. Your method should return that number. Note: you may assume that the list will have at least one number in it.


findSmallest([12]) → 12
findSmallest([1, 2, 3]) → 1
findSmallest([3, 4, 2, 1, 5]) → 1

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

public int findSmallest(ArrayList<Integer> numlist) { }

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

Copyright Nick Parlante 2017 - privacy