What have you tried? Where are you stuck? Break the problem down into pieces, and give each piece a try. When you get stuck on a piece, ask a specific question about why you are stuck and provide all the information for us to help
This thread has been cross posted here:
http://www.java-forums.org/advanced-java/66119-knapsack-problem-check-if-matrix-can-fill-list-smaller-matrix-list.html
Although cross posting is allowed,
for everyone's benefit, please read:
Java Programming Forums Cross Posting Rules
The Problems With Cross Posting