写成这样就不会了 有低级的编程基础 对junit不懂
指数补丁 质数补丁 直属补丁
需要获取输入存入变量x和y, 简单修改如下:
import java.util.Scanner;
import org.junit.Test;
public class HelloWorld {
public static void main(String[] args) {
// TODO Auto-generated method stub
}
@Test
public void Test01() {
Scanner sc = new Scanner(System.in);
int x=sc.nextInt();
int y=sc.nextInt();
int a;
if(x>=80&&y>=60) {
if(x>=90||y>=90) {
a = x;
}else {
a=2;
}
}else if(x<=70||y<=70) {
a=3;
}else {
a=4;
}
System.out.println(a);
}
}