An extremely useful Lorem Ipsum generator for Java!
You can get the latest release via maven:
<dependency>
<groupId>com.thedeanda</groupId>
<artifactId>lorem</artifactId>
<version>2.2</version>
</dependency>
Alternatively, you can add this to gradle:
compile 'com.thedeanda:lorem:2.2'
Now prepare your implementation:
Lorem lorem = LoremIpsum.getInstance();
lorem.getWords(5, 10);
Randomly generates between 5 and 10 words.
lorem.getParagraphs(2, 4);
Randomly generates between 2 and 4 paragraphs.
lorem.getHtmlParagraphs(2, 4);
Randomly generates between 2 and 4 paragraphs wrapped in <p> tags.
lorem.getTitle(2, 4);
Randomly generates a title of 2 to 4 words.
lorem.getName();
Generates a random name.
lorem.getNameFemale();
Generates a random female name.
lorem.getNameMale();
Generates a random male name.
lorem.getFirstName();
Generates a random first name.
lorem.getLastName();
Generates a random last name.
lorem.getPhone();
Generates a phone number in the form: (800) 555-1212
lorem.getCity();
Generates a city name.
lorem.getStateFull();
Generates a state name.
lorem.getStateAbbr();
Generates a 2 letter state abbreviation.
lorem.getZipCode();
Generates a 5-digit zip code
lorem.getCountry();
Generates a country name