RandomStringUtils: randomAlphabetic(int count)
/* 3) 8 char Alphanumeric string >>>rq4CoAFZ */ import org.apache.commons.lang.RandomStringUtils; public class RandomStringUtilsTrial { public static void main(String[] args) { //Random 8 chars string Alphanumeric System.out.print("3) 8 char Alphanumeric string >>>"); System.out.println(RandomStringUtils.randomAlphanumeric(8)); } }