/** * Compute the maximum value selection of boxes. If you understand what * I just wrote, you're cluefuller than I am. * */ public class Boxes { int[] sizes = { 3, 5, 9, 11 }; int[] values = { 12, 78, 42, 42 }; int available = 100; int[] best; } // class Boxes