DateFormatSymbols: getWeekdays() : DateFormatSymbols « java.text « Java by API






DateFormatSymbols: getWeekdays()

 
/*
 * Output: 
dimanche
lundi
mardi
mercredi
jeudi
vendredi
samedi
 * */

import java.text.DateFormatSymbols;
import java.util.Locale;

public class MainClass {
  public static void main(String args[]) {
    DateFormatSymbols symbols = new DateFormatSymbols(Locale.FRENCH);
    String days[] = symbols.getWeekdays();
    for (int i = 0; i < days.length; i++) {
      System.out.println(days[i]);
    }

  }
}

           
         
  








Related examples in the same category

1.new DateFormatSymbols(Locale loc)
2.DateFormatSymbols: getMonths()
3.DateFormatSymbols: getShortWeekdays()
4.DateFormatSymbols: setEras(String[] newEras)
5.DateFormatSymbols: setShortWeekdays(String[] newShortWeekdays)