fork download
  1. import java.util.UUID;
  2.  
  3. class UUIDConverter {
  4.  
  5. public static UUID reverseUUIDToString(String uuidString) {
  6. UUID uuid = UUID.nameUUIDFromBytes(uuidString.getBytes());
  7. return uuid;
  8. }
  9.  
  10. public static void main(String[] args) {
  11. String uuidString = "fe4b6348-b565-48ee-a833-5c650ee7be56_rm_provisionRequestId";
  12. UUID originalString = reverseUUIDToString(uuidString);
  13. System.out.println("Original String: " + originalString.toString());
  14. }
  15. }
Success #stdin #stdout 0.16s 55900KB
stdin
Standard input is empty
stdout
Original String: 469d1a2c-59e5-3d72-92bf-82431cc486bb