Java · ArrayList and wrapper classes
A packing line weighs every egg, and its program decides which eggs go into the large cartons and how much they weigh in all.