求指点哪里有问题
哪里有问题啊,求指导 public static void main(String[] args) { int age1=24; int age2=18; int age3=36; int age4=27; int sum = 0; int demoArray[i]=('24','18','36','27'); for(int i=0;i++;i<4){ sum = sum+ demoArray[i]; return sum ; } double avg = sum/4; int minus = age1-age2;