MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

/*
 * 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]);
        }

    }
}