Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.time.DayOfWeek;

public class Main {
    public static void main(String[] args) {
        DayOfWeek dayOfWeek = DayOfWeek.TUESDAY;
        System.out.println(dayOfWeek.name());
        System.out.println(dayOfWeek.getValue());
        System.out.println(dayOfWeek.ordinal());
    }
}