create Dashless UUID - Android java.util

Android examples for java.util:UUID

Description

create Dashless UUID

Demo Code

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.Iterator;
import java.util.UUID;

public class Main{

    public static String createDashlessUUID() {
        return UUID.randomUUID().toString().replace("-", EMPTY_STRING);
    }//from  w ww  .  j a  v  a 2  s .c  o  m

}

Related Tutorials