Lorem Ipsum: Now Generated in Java
Join the DZone community and get the full member experience.
Join For Free
And all that text will not need to have been typed, or copy/pasted, or anything similar. Instead, you will be able to use Java itself to generate the above filler text. The above 5 paragraphs of high minded mumbo jumbo came about like this:
LoremIpsum ipsum = new LoremIpsum();
String words = ipsum.getParagraphs(5);
And the lorem ipsum library is quite versatile:
So not only can you choose to generate either words or paragraphs, but the exact number of words and paragraphs can also be specified. Here's looking forward to seeing lorem ipsumized space fillers in all the demos of the future!
Opinions expressed by DZone contributors are their own.
Comments