Client类
package four2;
import java.util.Scanner;
@SuppressWarnings(“all”)
public class Client {
public static void menu()
{
System.out.println("\t============Please choose operation================");
System.out.println("\t==========1:Cross the river alone==================");
System.out.println("\t==========2:Cross the river with wolf==============");
System.out.println("\t==========3:Cross the river with sheep=============");
System.out.println("\t==========4:Cross the river with cabbage===========");
System.out.println("\t==========0:Quit===================================");
System.out.println("\t===================================================");
System.out.println("Input the number(0~4):");
}
public static voi