import java.util.*;public class lianxi72 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner inport = new Scanner(System.in); System.out.println("请输入年龄:"); int age =inport.nextInt(); System.out.println("请输入性别:"); String name =inport.next(); String sex="男"; if((age>=7&&age>=5 )&& (sex.equals(name))) { System.out.println("可以去搬桌子"); }else{ System.out.println("年龄不够或者不是男生"); } }}