Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.time.DayOfWeek;
import java.time.LocalDate;
import java.time.temporal.TemporalAdjusters;

public class Main {

    public static void main(String[] args) {
        LocalDate d = LocalDate.now().with(TemporalAdjusters.previousOrSame(DayOfWeek.MONDAY));
        System.out.println(d);

    }

}