1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import  java.util.Scanner;
 
public  class  A02 {
 
     /**
      * @param args
      */
     public  static  void  main(String[] args) {
         // TODO Auto-generated method stub
         Scanner input =  new  Scanner(System.in);
         System.out.println( "请输入你的年龄:" );
         int  Age=input.nextInt();
         System.out.println( "请输入你的性别:" );
         char  Gender = input.next().charAt( 0 );
         if (Gender== '男' &&Age> 4 ||Age> 6 ){
             System.out.println( "你可以搬桌子!" );
         } else {
             System.out.println( "不可以搬桌子!" );
         }
     }
 
}