Java作业,定义一个类,从键盘中获取两个数,比较大小,并返回最大值 //定义一个Text4类 public class Text4 { //第一个方法(无参) public static int max(){ int x; int y; Scanner sc=new