stay common Create a class file in the package

package sinosoft.bjredcross.common;
import java.util.UUID;
public class UUIDUtils {
* Get the specified number of UUID
* @param number int What you need to get UUID Number
* @return String[] UUID Array
public static String[] getUUID(int number){
if(number < 1){
return null;
String[] retArray = new String[number];
for(int i=0;i<number;i++){
retArray[i] = getUUID();
return retArray;
} /**
* To obtain a UUID
* @return String UUID
public static String getUUID(){
String uuid = UUID.randomUUID().toString();
// Get rid of “-” Symbol
return uuid.replaceAll("-", "");

get 32 position UUID String and a specified number of UUID More articles about

  1. Generate 32 position UUID And generate a specified number of UUID

    Reference address : UUID A number generated on a machine , It guarantees that all machines in the same time and space are unique ...

  2. php Generate 32 Bit random string For payment verification User registration

    //32 Bit random string function randstrpay($length=32) { $rand=''; $randstr= 'ABCDEFGHIJKLMNOPQRSTUVWXYZ01234567 ...

  3. stay Delphi Get the only 32 Bit long string

    function GetGUID: string; var   vGUID: TGUID;   vTemp:string; begin   if S_OK = CreateGuid(vGUID) th ...

  4. Explain why 32 Bit system can only use 4G Memory .

    In this paper, from :, Thank you for the author's dry goods Since it's a detailed explanation , Let's start from the most basic point . 1. Bit( ...

  5. PTA——32 Bit leading zeros

    PTA #include <stdio.h> int main(){ // Only an unsigned integer can express 32 A decimal number corresponding to a binary number unsigned int decimalNum; unsigned ...

  6. Java adopt UUID Random generation 36 position 、32 Bit unique identification code ( Unique string )

    import java.util.UUID; /** * adopt UUID Random generation 36 position .32 Bit unique identification code ( Unique string ) * @author [J.H] * */ public class Test { ...

  7. java 32 position MD5 Encrypted uppercase string

    package com.aok.test; import; public class MD5Test { public static void ...

  8. 32 Bit and 64 Bit system difference and int Number of bytes

    In theory I think the number of bytes of data type should be determined by CPU Decisive , But it's really up to the compiler ( How many bits has the final say compiled by compiler? ). Common data types correspond to the number of bytes    Available as sizeof(char),sizeof(ch ...

  9. take 32 position MD5 Abstract string is converted to 128 Bit binary string

    take 32 by MD5 Abstract string is converted to 128 Bit binary string : /// <summary> /// Convert a string to binary /// </summary> /// <param name=& ...

Random recommendation

  1. JavaScript Chart FusionCharts Free online open class , Delivered by the technical engineer of the original factory in India ,10 month 13 Daily departure

    FusionCharts Open class talent also you do It's easy to become a master of charts [ Class time ]10 month 13 Japan 14:30[ Lecturer ] Original technical engineer in India [ The form of the class ] Online open class [ The cost of the event ] front 50 Names are free You can sign up now   newspaper ...

  2. Host and virtual machine interact with each other ping But it can't be copied

    1. This function ping Through virtual machines 2. Virtual machines can also ping Through this machine 3. Virtual machines access their own web 4. This machine cannot access the virtual machine web It turns out that the firewall will 80 The port is shielded . Check if it's from the server 80 The port is blocked by a firewall ...

  3. Cell shortest path algorithm template summary (Dijkstra, BF,SPFA), Attached chain forward star template

    One :dijkstra Algorithm time complexity , With priority queue optimization ,O((M+N)logN) Find the shortest path of a single source , All edges are required to have nonnegative weights . If an edge with negative weight appears in the graph ,Dijkstra The algorithm will fail , The shortest path may be wrong ...

  4. When SQL Server When the instance of is located on a specific node of the cluster , Database cannot be accessed remotely

    Set up a cluster environment , Found that when SQL Server When an instance of is located on one of the nodes of the cluster , Database cannot be accessed remotely , Report the following error . But in another Node time , Database access is normal . title : Connect to the server -------------- ...

  5. L330 Black hole picture captured for first time in space ‘breakthrough’

    Black hole picture captured for first time in space ‘breakthrough’ Astronomers have captured the fir ...

  6. VUE 2.x SEO optimization problem vue-meta-info &amp;&amp; prerender-spa-plugin In combination with

    VUE 2.x  SEO  optimization problem , And pre rendering 1. New projects can adopt nuxt.js , To configure meta. And pre rendering It's very convenient , The official website documents are very detailed : 2. For existing projects : vue-meta-info & ...

  7. 20171024xlVBA Batch acquisition PPT\WORD\PDF the number of pages

    Public Sub ModifyFileNames() Dim FolderPath As String Dim FileNames As Variant Dim dotPos As Long Di ...

  8. 【 The king is proud IT The great God version 】1.1 Version upgrade “ Surrender mechanism ”

    edition :1.1 About “ Surrender mechanism ” The theoretical basis and Inspiration of this theory comes from < Micro habit > This book . Simply speaking , Micro habits are small, small habits , for instance , Do a push up every day , One page a day, etc . We may have had a lot of plans before , But it's always ...

  9. Shell Variable while Changes in the loop cannot be transferred out of the loop

    from : Brush today Leecode(192 Word frequency) when , Meet a shell language ...

  10. Node.js relevant ——CommonJS standard

    1. CommonJS The background of norms On the back end ,JavaScript It's far behind and flawed , This makes it difficult to use JavaScript Developing large applications . such as : No modular system Fewer Standard Libraries There is no standard interface Lack of package management ...