EOQ in Java Model