java unique value generator code example Example: java unique id String uuid = UUID.randomUUID().toString();