java how to generate guid code example Example: java how to generate guid String guid = java.util.UUID.randomUUID().toString();