@@ -0,0 +1,1092 @@
+package com.kundan.binpacking.sample;%0A%0Aimport java.io.BufferedOutputStream;%0Aimport java.io.File;%0Aimport java.io.FileOutputStream;%0Aimport java.io.IOException;%0Aimport java.util.Random;%0A%0A/**%0A * class to generate sample items.%0A * %0A * @author my-pc%0A *%0A */%0Apublic class GenerateTestSample %7B%0A%09public static void main(String args%5B%5D) %7B%0A%09%09File file = null;%0A%09%09FileOutputStream fos = null;%0A%09%09BufferedOutputStream bos = null;%0A%09%09try %7B%0A%09%09%09file = new File(%22D:%5C%5Citems.txt%22);%0A%09%09%09fos = new FileOutputStream(file);%0A%09%09%09bos = new BufferedOutputStream(fos);%0A%09%09%09Random rand = new Random();%0A%09%09%09for (int i = 0; i %3C 30; i++) %7B%0A%09%09%09%09bos.write(new String(rand.nextDouble() + %22 %22%0A%09%09%09%09%09%09+ rand.nextDouble()).getBytes());%0A%09%09%09%09bos.write(%22%5Cn%22.getBytes());%0A%09%09%09%7D%0A%09%09%09bos.write(%22#%22.getBytes());%0A%09%09%09bos.flush();%0A%09%09%7D catch (final Exception e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7Dfinally%7B%0A%09%09%09if(bos != null)%7B%0A%09%09%09%09try %7B%0A%09%09%09%09%09bos.close();%0A%09%09%09%09%7D catch (final IOException e) %7B%0A%09%09%09%09%09e.printStackTrace();%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%09if(fos != null)%7B%0A%09%09%09%09try %7B%0A%09%09%09%09%09fos.close();%0A%09%09%09%09%7D catch (final IOException e) %7B%0A%09%09%09%09%09e.printStackTrace();%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Create GenerateTestSample.java