applications
Class RecursiveBTLoading2

java.lang.Object
  |
  +--applications.RecursiveBTLoading2

public class RecursiveBTLoading2
extends java.lang.Object


Constructor Summary
RecursiveBTLoading2()
           
 
Method Summary
static void main(java.lang.String[] args)
          test program
static int maxLoading(int[] theWeight, int theCapacity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecursiveBTLoading2

public RecursiveBTLoading2()
Method Detail

maxLoading

public static int maxLoading(int[] theWeight,
                             int theCapacity)
Parameters:
theWeight - array of container weights
theCapacity - capacity of ship
Returns:
weight of max loading

main

public static void main(java.lang.String[] args)
test program