Java
Need help with lorem?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.
mdeanda

Description

An extremely useful Lorem Ipsum generator!

129 Stars 17 Forks MIT License 64 Commits 4 Opened issues

Services available

Need anything else?

lorem

An extremely useful Lorem Ipsum generator for Java!

Getting Started:

You can get the latest release via maven:

xml

    com.thedeanda
    lorem
    2.1

Alternatively, you can add this to gradle:

gradle
compile 'com.thedeanda:lorem:2.1'

Now prepare your implementation:

java
Lorem lorem = LoremIpsum.getInstance();

Sample Usage:

Words

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.

Names

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.

Phone Numbers

lorem.getPhone();

Generates a phone number in the form:

(800) 555-1212

Locations

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

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.