java.time API - Classes & Methods

 package com.company;


import java.time.LocalDate;
import java.time.LocalTime;

public class tuts {
public static void main(String[] args) {
LocalDate d = LocalDate.now();
System.out.println(d);

LocalTime t = LocalTime.now();
System.out.println(t);


}
}

Comments

Popular posts from this blog

Creating a Thread by Extending Thread class

Constructors from Thread class in Java