fork(1) download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import com.google.common.base.Charsets;
  6.  
  7. class Main {
  8. public static void main(String[] args) throws java.lang.Exception {
  9. String[] values = {"FR*S91*EV*DDDW1", "FR*S92*EV*DDDW2", "FR*S93*EV*DDDW3"};
  10.  
  11. for (String value : values) {
  12. byte[] bytes = value.getBytes(Charsets.UTF_8);
  13. System.out.println(value);
  14. System.out.println(java.util.UUID.nameUUIDFromBytes(bytes));
  15. Thread.sleep(500);
  16. }
  17. }
  18. }
Success #stdin #stdout 0.15s 53568KB
stdin
Standard input is empty
stdout
FR*S91*EV*DDDW1
27197466-dd5e-3655-acf6-f4161b19e449
FR*S92*EV*DDDW2
22da9b84-ccf7-3349-9f24-1dffcc2ac6c4
FR*S93*EV*DDDW3
be26d961-7ff4-330b-bc87-7835336b0a6e