Create knapsack.java