import org.apache.commons.lang.RandomStringUtils; public class MainClass { public static void main(String[] args) { //Random 8 chars string Alphabets only System.out.print("4) 8 char string -Alphabets only >>>"); System.out.println(RandomStringUtils.randomAlphabetic(8)); } }
4) 8 char string -Alphabets only >>>WOjFhopO