public class test {
public static void main(String[] args) {
// TODO Auto-generated method stub
int math = 120;
System.out.println("math " + math);
}
}望采纳
public class Test {
public static void main(String[] args) {
int math = 120;
System.out.println(math);
}
}更新:import java.util.Arrays;
public class Test {
public static void main(String[] args) {
int math = 120;
int chinese = 100;
int english = 90;
int[] score = {math, chinese, english};
Arrays.sort(score);
int max = score[score.length - 1];
System.out.println(max);
}
}代码以上,望采纳。