Java - Write code to get Current Time Stamp in millisecond long value

Requirements

Write code to get Current Time Stamp in millisecond long value

Demo

//package com.book2s;

public class Main {
    public static void main(String[] argv) {
        System.out.println(getCurrentTimeStamp());
    }/*from   w  w w. j  a v  a 2s  .  co m*/

    public static long getCurrentTimeStamp() {
        return System.currentTimeMillis();
    }
}

Related Exercise