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

 

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

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


sumWithoutSmallest([12]) → 0
sumWithoutSmallest([1, 2, 3]) → 5
sumWithoutSmallest([3, 4, 2, 1, 5]) → 14

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

public int sumWithoutSmallest(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

Difficulty: 80

Copyright Nick Parlante 2017 - privacy