FastFoodCoding

Login


Connect with one of the following accounts





Login

Please wait while we redirect...

Views: 82   



Following program shows you how to print present date.
We can get present date using LocalDate.now() in java.

import java.time.LocalDate;

public class Basic16 {

    public static void main(String[] args) {

        LocalDate presentDate = LocalDate.now();

        System.out.println("Present Date is: " + presentDate);

    }

}

Output:

Present Date is: 2018-03-19



On By


Top Tutorials

Top Questions

Top Articles

Top Blogs

Top News