How to the current time in milliseconds with Java

1 Answer

0 votes
public class MyClass {
    public static void main(String args[]) {
      System.out.println(System.currentTimeMillis());
    }
}



/*
run:

1616580352034

*/

 



answered Mar 24, 2021 by avibootz
...