Java - Write code to generate Random Integer Id

Requirements

Write code to generate Random Integer Id

Demo

//package com.book2s;

import java.util.*;

public class Main {
    public static void main(String[] argv) {
        System.out.println(generateRandomIntegerId());
    }// www  .  j  a  v a 2s  .com

    public static String generateRandomIntegerId() {
        Random random = new Random();
        long abs = Math.abs(random.nextLong());

        return String.valueOf(abs);
    }
}