fork 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*CTS*EV*GIOP", "FR*CTS*EV*GIVP"};
  10.  
  11. for (String value : values) {
  12. byte[] bytes = value.getBytes(Charsets.UTF_8);
  13. System.out.println(value + "," + java.util.UUID.nameUUIDFromBytes(bytes));
  14. Thread.sleep(500);
  15. }
  16. }
  17. }
Success #stdin #stdout 0.13s 58552KB
stdin
Standard input is empty
stdout
FR*CTS*EV*GIOP,7bf1c576-ff37-3c70-ac12-2e63a7a4da7e
FR*CTS*EV*GIVP,536df142-42c7-3d87-b27c-a7715dcbf339