RandomStringUtils: randomAlphabetic(int count) : RandomStringUtils « org.apache.commons.lang « Java by API






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));

    }
}

           
       








Apache-Common-Lang.zip( 248 k)

Related examples in the same category

1.RandomStringUtils: random(int count, String chars)
2.RandomStringUtils: random(int count, boolean letters, boolean numbers)
3.RandomStringUtils: random(int count, int start, int end, boolean letters, boolean numbers, char[] chars, Random random)
4.RandomStringUtils: randomNumeric(int count)