generate random ID within the java class code example Example: java unique id String uuid = UUID.randomUUID().toString();