package com.golden.servlet.util;
public class Test1 {
public static void main(String[] args) {
System.out.println(compute(81, "女"));
}
public static String compute(int score, String sex) {
if (score < 60) {
return "æ·æ±°";
}
if (score < 80) {
return "è¿å
¥å¥³åå¤èµ";
}
if (score > 80) {
if (sex.equals("ç·")) {
return "è¿å
¥ç·åç»å³èµ";
}
return "è¿å
¥å¥³åç»å³èµ";
}
throw new RuntimeException("å
¶å®æªå®ä¹è§å");
}
}