import java.util.Date;public class MainClass { public static void main(String[] args) { Date now = new Date(); System.out.printf("nanoseconds: %tN/%TN\n", now, now); }}// nanoseconds: 007000000/007000000