Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.time.chrono.ThaiBuddhistChronology;
import java.time.chrono.ThaiBuddhistDate;

public class Main {

    public static void main(String[] args) {
        ThaiBuddhistChronology thaiBuddhistChrono = ThaiBuddhistChronology.INSTANCE;
        ThaiBuddhistDate now = thaiBuddhistChrono.dateNow();
        ThaiBuddhistDate now2 = ThaiBuddhistDate.now();
        System.out.println("Current Date  in Thai  Buddhist: " + now);
        System.out.println("Current Date  in Thai  Buddhist: " + now2);
    }
}