int prevDays calendar.get(Calendar.DAY_OF_WEEK)-1;
Syntax error on token "prevDays", = expected after this token
少写了个人“=” 号, int prevDays = calendar.get(Calendar.DAY_OF_WEEK)-1;