Answers for "Genarate uuid from string java"

2

java uuid from string

// Import Java UUID Utils
import java.utils.UUID;

// Execute function fromString() with your string as argument.
// Returns an uuid, which is your string converted into an UUID.
UUID uuid = UUID.fromString(string);
Posted by: Guest on December-03-2020
1

uuid from any string java

import java.utils.UUID;

String strInput = "-1068942631";
String uuidFromString = UUID.nameUUIDFromBytes( String.valueOf( strInput ).getBytes() ).toString();

System.out.println(uuidFromString);
Posted by: Guest on March-07-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language