This is a Java translation of the Scala generalized solution to the 'Pouring Water' problem offered in the course 'Functional Programming Principles in Scala'
The point is 'feeling the difference' between the two languages and somehow verifying how verbose Java can be ;-(
With the comand
mvn clean test
a JUnit test is executed solving the 'Water Jug Riddle from Die Hard 3' ;-P
http://www.math.tamu.edu/~dallen/hollywood/diehard/diehard.htm
Regards