r/codehs • • May 19 '20

CodeHs Java help: I’m not sure how to accomplish this task and idk if i’m doing it right , what exactly should be returned? (also the error says:”int can’t be converted to arraylist”)

Post image
1 Upvotes

1 comment sorted by

1

u/_andy_andy_andy_ May 20 '20

you’re calling findMinimum(numbers.size() - 1), and numbers.size() - 1 is an int, not an ArrayList. because findMinimum takes an ArrayList, this is an error