有没有更简便的写法
public class HelloWorld{
public static void main(String[] args) {
double score=80;
boolean a=score>=60;
boolean b=score<70;
boolean c=score>=70;
boolean d=score<80;
boolean e=score>=80;
boolean f=score<60;
String mark=((f==true)?"不合格":"");
String mark1=((a&&b==true)?"合格":"");
String mark2=(c&&d==true)?"良好":"";
String mark3=(e==true)?"优秀":"";
System.out.println("成绩"+mark+mark1+mark2+mark3);
}
}