commons.lang Code Samples
- How do I find items in an array?
- How do I check for an empty string?
- How do I convert array of object to array of primitive?
- How do I reverse array elements order?
- How do I convert an array to a Map?
- How do I reverse a string, words or sentences?
- How do I check if a string is empty or not?
- How do I format date and time using DateFormatUtils class?
- How do I get the nearest hour, minute, second of a date?
- How do I use Jakarta Commons ToStringBuilder?
- How do I find text between two strings?
- How do I count word occurrences in a string?
- How do I use ReflectionToStringBuilder class?
- How do I use CompareToBuilder class?
Page of 2 |
Prev
|
Next
How do I generate a random alpha-numeric string?
The code below show you how to use the commons-lang RandomStringUtils class to generate some random string data.
The example of our program result are:
random = 2377316738997278218735578855577798247976319451877477254850564896 random = wwqbLxlRynIdptAoxuSIfbABRoOFHLyKaFEscrUoBQjAHPOkcIqfHuMnhXVzaLCf random = 6nQ0PJf<#VgIi='&d`*`Ru#i_exMoHXb random = ZGbelXYEiLrlLBXKroCIDJPrevZPIGkD
