import java.time.LocalTime; public class LocalTimeExample1 { public static void main(String[] args) { LocalTime time = LocalTime.now(); System.out.println(time); } }