要考虑正是是两位以上的情况
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
String str;
String[] s = new String[3];
Scanner input = new Scanner(System.in);
int a, b, c, t;
str = input.nextLine();
s = str.split(","); //将str以,为分隔符分成若干字符串;
a = Integer.parseInt(s[0]);
b = Integer.parseInt(s[1]);
c = Integer.parseInt(s[2]);
t = a;
if(t < b) {
t = b;
}
if(t < c) {
t = c;
}
System.out.println("max="+t);
}
}