您和您的相亲对象约会
键盘输入两个整数,表示你和你约会对象衣服时髦程度(手动录入0-10)
如果你的时髦程度大于对象时髦程度,相亲成功,输出true
否则输出false
package com.idheima.demo1;
import java.util.Scanner;
public class study {
public static void main(String[] args) {
Scanner moudle1 = new Scanner(System.in);
System.out.println("输入您的时髦程度");
int myfashion = moudle1.nextInt();
Scanner moudle2 = new Scanner(System.in);
System.out.println("输入您相亲对象的时髦程度");
int girlfashion = moudle2.nextInt();
boolean result = myfashion > girlfashion;
System.out.println(result);
}
}