JAVA programming - one hundred dollars to buy a hundred chickens