Question: java eclipse problem Part II: (80 pts.) This program will use the Java Collections API LinkedList collection is the game of Fox, Chicken, and Grain.
java eclipse problem



Part II: (80 pts.) This program will use the Java Collections API LinkedList collection is the game of Fox, Chicken, and Grain. In this game there is farmer on the south bank of a river who needs to transport his fox, chicken, and grain to the north shore. The boat is only large enough for one item or the farmer can travel alone. If he leaves the fox with the chicken, the fox will eat the chicken. If he leaves the chicken with the grain, the chicken will eat the grain. The game is won if the farmer and all three items end up on the north bank. 1.The Fox Game specification is presented below. Complete the methods of this class without changing the PRE/POST comments. public class FoxGame String farmerLocation; location of farmer: south or north LinkedList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
