@@ -0,0 +1,931 @@
+package com.kundan.binpacking.core;%0A%0Aimport java.util.ArrayList;%0A%0Aimport com.kundan.binpacking.utils.Utils;%0A%0A/**%0A * Main class to run the algorithm.%0A * This algorithm computes the minimum bins required to fit rectangles in unit size bin.%0A * @author my-pc%0A *%0A */%0Apublic class BinPackingAlgorithm %7B%0A%09%0A%09public static ArrayList%3CItem%3E mItems;%0A%09public static ArrayList%3CBin%3E mBins;%0A%0A%09/**%0A%09 * main method.%0A%09 * @param args%0A%09 */%0A%09public static void init()%7B%0A%09%09System.out.println(%22Start of Algorithm%22);%0A%09%09// get all the items%0A%09%09// get the bin size%0A%09%09// normalize the bin to unit, and normalize the items too with same ratio.%0A%09%09// if any item exceed bin size scale it to the unit size.%0A%09%09mItems = Utils.getSampleItems();%0A%09%09System.out.println(%22Given Items.%22);%0A%09%09System.out.println(mItems);%0A%09%09%0A%09%09mBins = Utils.getNFDHBinPacking(mItems);%0A%09%09%0A%09%09// call the method which will return the packing.%0A%09%09System.out.println(%22End of Algorithm%22);%0A%09%7D%0A%09%0A%09%0A%0A%09%0A%7D%0A

Create LoadImageApplet.java