public static String number2Week(int number){
  if (number < 1 || number > 7)   return null;
  if (number == 7) {
    number=1;
  }
 else {
    number=number + 1;
  }
  final DateFormatSymbols symbols=new DateFormatSymbols();
  final String nameDayOfWeek=symbols.getShortWeekdays()[number];
  return nameDayOfWeek.toUpperCase();
}

public static String number2Week ( int number ) { if ( number < 1 || number > 7 ) return null ; if ( number == 7 ) { number = 1 ; } else { number = number + 1 ; } final DateFormatSymbols symbols = new DateFormatSymbols ( ) ; final String nameDayOfWeek = symbols . getShortWeekdays ( ) [ number ] ; return nameDayOfWeek . toUpperCase ( ) ; }
expcalendarutil . java the number to week
