Nsdtp!
Past activation energy can be clear sailing, Others do not get to claim ground on what you can and cannot do, Small changes do add up, Don’t forget an extra bottle of water can change a lot, Encouragement Throughput has yet to be maximized, The future has yet to be written, The future has yet to be written, The future has yet to be written, Nsdtp! Never Say Die Throughput!, Possible has yet to be defined, The future has yet to be written, You will Prevail!, Don’t forget an extra bottle of water can change a lot, Possible has yet to be defined, Nsdtp! Never Say Die Throughput!.
Don’t forget an extra bottle of water can change a lot, Possible has yet to be defined, You will Prevail!, Never Say Die!, Never Say Die!, Possible is Power, Others do not get to claim ground on what you can and cannot do, Possible is Power, Never Say Die!, Small changes do add up, You can do it!, Others do not get to claim ground on what you can and cannot do, Never Say Die!, Encouragement Throughput has yet to be maximized, You can do it!.
Others do not get to claim ground on what you can and cannot do, Initial conditions can mean a lot, The future has yet to be written, Customer Experience and Quality can be Improved, The future has yet to be written, Never Say Die!, The future has yet to be written, Small changes do add up, There is hope in a New Day, Customer Experience and Quality can be Improved, Never Say Die!, Customer Experience and Quality can be Improved, Don’t forget an extra bottle of water can change a lot, Small changes do add up, Nsdtp! Never Say Die Throughput!.
Past activation energy can be clear sailing, Encouragement Throughput has yet to be maximized, Others do not get to claim ground on what you can and cannot do, Initial conditions can mean a lot, Customer Experience and Quality can be Improved, Possible has yet to be defined, You will Prevail!, Past activation energy can be clear sailing, Initial conditions can mean a lot, Past activation energy can be clear sailing, You will Prevail!, Others do not get to claim ground on what you can and cannot do, Small changes do add up, Never Say Die!, The future has yet to be written.
You will Prevail!, You will Prevail!, Others do not get to claim ground on what you can and cannot do, Encouragement Throughput has yet to be maximized, You will Prevail!, Others do not get to claim ground on what you can and cannot do, You can do it!, Possible has yet to be defined, Others do not get to claim ground on what you can and cannot do, You will Prevail!, Encouragement Throughput has yet to be maximized, Nsdtp! Never Say Die Throughput!, Others do not get to claim ground on what you can and cannot do, Don’t forget an extra bottle of water can change a lot, Initial conditions can mean a lot.
Don’t forget an extra bottle of water can change a lot, Small changes do add up, There is hope in a New Day, Possible has yet to be defined, Initial conditions can mean a lot, Possible has yet to be defined, There is hope in a New Day, Past activation energy can be clear sailing, You can do it!, Small changes do add up, There is hope in a New Day, Don’t forget an extra bottle of water can change a lot, Others do not get to claim ground on what you can and cannot do, Customer Experience and Quality can be Improved, There is hope in a New Day.
You can do it!, The future has yet to be written, Encouragement Throughput has yet to be maximized, There is hope in a New Day, Possible has yet to be defined, Encouragement Throughput has yet to be maximized, Small changes do add up, Never Say Die!, Possible has yet to be defined, Don’t forget an extra bottle of water can change a lot, Encouragement Throughput has yet to be maximized, Small changes do add up, Customer Experience and Quality can be Improved, The future has yet to be written, Nsdtp! Never Say Die Throughput!.
The future has yet to be written, Customer Experience and Quality can be Improved, Nsdtp! Never Say Die Throughput!, You will Prevail!, Possible is Power, Encouragement Throughput has yet to be maximized, Nsdtp! Never Say Die Throughput!, Never Say Die!, Nsdtp! Never Say Die Throughput!, Never Say Die!, Possible has yet to be defined, Possible is Power, Customer Experience and Quality can be Improved, Nsdtp! Never Say Die Throughput!, Possible is Power.
Encouragement Throughput has yet to be maximized, Possible has yet to be defined, The future has yet to be written, Don’t forget an extra bottle of water can change a lot, Possible has yet to be defined, Nsdtp! Never Say Die Throughput!, Encouragement Throughput has yet to be maximized, Never Say Die!, Initial conditions can mean a lot, Encouragement Throughput has yet to be maximized, There is hope in a New Day, The future has yet to be written, Initial conditions can mean a lot, Others do not get to claim ground on what you can and cannot do, Initial conditions can mean a lot.
Customer Experience and Quality can be Improved, Never Say Die!, Possible is Power, Past activation energy can be clear sailing, Small changes do add up, Initial conditions can mean a lot, Initial conditions can mean a lot, Never Say Die!, The future has yet to be written, You can do it!, Possible is Power, The future has yet to be written, Nsdtp! Never Say Die Throughput!, Small changes do add up, Never Say Die!.
Free Starter Java Classes
package color;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.Arrays;
import random.RandomUtil;
public class ColorUtil {
private static ArrayList<String> htmlHexColors;
public static ArrayList<String> getHtmlHexColorsSet() {
if (null != htmlHexColors) {
return htmlHexColors;
}
String arrayOfHtmlHexColors[] = {
"#000000", // Black
"#FF0000", // Red
"#00FF00", // Green
"#0000FF" // Blue
};
htmlHexColors = new ArrayList<>(Arrays.asList(arrayOfHtmlHexColors));
return htmlHexColors;
}
public static String getRandomEncouragingPhrase() {
String encouragingPhrase = random.RandomUtil.getRandomElementInListOfStrings(getHtmlHexColorsSet());
return encouragingPhrase;
}
public static String encloseStringInParagraphOfRandomColor(final String content) {
final StringWriter stringWriter = new StringWriter();
stringWriter.append("<p style=\"color:"+RandomUtil.getRandomElementInListOfStrings(getHtmlHexColorsSet()));
stringWriter.append("\">");
stringWriter.append(content);
stringWriter.append("</p>");
return stringWriter.toString();
}
}
package encouragement;
import java.util.ArrayList;
import java.util.Arrays;
import random.RandomUtil;
public class EncouragementUtil {
private static ArrayList<String> encouragingPhrases;
public static ArrayList<String> getEncouragingPhrases() {
if (null != encouragingPhrases) {
return encouragingPhrases;
}
String arrayOfEncouragingPhrases[] = {
"Never Say Die!", "You can do it!", "You will Prevail!",
"Nsdtp! Never Say Die Throughput!", "Small changes do add up",
"Possible is Power", "Possible has yet to be defined",
"There is hope in a New Day", "The future has yet to be written",
"Initial conditions can mean a lot", "Encouragement Throughput has yet to be maximized",
"Customer Experience and Quality can be Improved", "Don't forget an extra bottle of water can change a lot",
"Past activation energy can be clear sailing", "Others do not get to claim ground on what you can and cannot do"
};
encouragingPhrases = new ArrayList<>(Arrays.asList(arrayOfEncouragingPhrases));
return encouragingPhrases;
}
public static String getRandomEncouragingPhrase() {
String encouragingPhrase = RandomUtil.getRandomElementInListOfStrings(getEncouragingPhrases());
return encouragingPhrase;
}
}
package random;
import java.util.ArrayList;
import java.util.OptionalDouble;
import java.util.random.RandomGenerator;
import java.util.random.RandomGeneratorFactory;
import java.util.stream.DoubleStream;
public class RandomUtil {
private static RandomGenerator randomGenerator = RandomGeneratorFactory.getDefault().create();
public static ArrayList<String> getRandomList(ArrayList<String> listOfStrings, int size) {
DoubleStream doubleStream = randomGenerator.doubles(size);
ArrayList<String> randomList = new ArrayList<>();
doubleStream.forEach((random) -> {
int value = Double.valueOf(listOfStrings.size()*random).intValue();
randomList.add(listOfStrings.get(value));
});
return randomList;
}
public static String getRandomElementInListOfStrings(ArrayList<String> listOfStrings) {
DoubleStream doubleStream = randomGenerator.doubles(1);
OptionalDouble random = doubleStream.findFirst();
int value = Double.valueOf(listOfStrings.size()*random.getAsDouble()).intValue();
String randomElementString = listOfStrings.get(value);
return randomElementString;
}
}
package main;
import java.io.IOException;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.logging.FileHandler;
import java.util.logging.Logger;
import color.ColorUtil;
import encouragement.EncouragementUtil;
import random.RandomUtil;
public class Main {
private static Logger logger = Logger.getLogger(Main.class.toString());
public static void main(String[] args) {
String filename = "encouragementNsdtp-"+System.nanoTime()+".txt";
try {
FileHandler fileHandler = new FileHandler("c:\\storyGenOutput\\"+filename, true);
logger.addHandler(fileHandler);
} catch (IOException e) {
logger.severe("Exception enabling log file to be written to disk");
}
final StringWriter encouragementWriter = new StringWriter();
for (int i=0; i<10; i++) {
ArrayList<String> encouragementPhrases = RandomUtil.getRandomList(EncouragementUtil.getEncouragingPhrases(), 15);
final StringWriter encouragementParagraphWriter = new StringWriter();
encouragementPhrases.forEach((phrase) -> {
encouragementParagraphWriter.append(phrase+", ");
});
String encouragementParagraph = encouragementParagraphWriter.toString();
encouragementParagraph=encouragementParagraph.substring(0,encouragementParagraph.length()-2);
encouragementParagraph+=".";
encouragementWriter.append(ColorUtil.encloseStringInParagraphOfRandomColor(encouragementParagraph)+"\n\n");
}
logger.info(encouragementWriter.toString());
}
}
Others do not get to claim ground on what you can and cannot do, You will Prevail!, Others do not get to claim ground on what you can and cannot do, Initial conditions can mean a lot, The future has yet to be written, There is hope in a New Day, There is hope in a New Day, Nsdtp! Never Say Die Throughput!, Never Say Die!, Past activation energy can be clear sailing, Initial conditions can mean a lot, There is hope in a New Day, Initial conditions can mean a lot, You will Prevail!, Never Say Die!.
You will Prevail!, Nsdtp! Never Say Die Throughput!, The future has yet to be written, Don’t forget an extra bottle of water can change a lot, Encouragement Throughput has yet to be maximized, Possible is Power, Possible is Power, Encouragement Throughput has yet to be maximized, Possible is Power, Don’t forget an extra bottle of water can change a lot, Encouragement Throughput has yet to be maximized, There is hope in a New Day, Possible has yet to be defined, The future has yet to be written, Others do not get to claim ground on what you can and cannot do.
You will Prevail!, Customer Experience and Quality can be Improved, Never Say Die!, Initial conditions can mean a lot, Customer Experience and Quality can be Improved, There is hope in a New Day, Others do not get to claim ground on what you can and cannot do, Don’t forget an extra bottle of water can change a lot, You will Prevail!, Never Say Die!, Possible is Power, You will Prevail!, Past activation energy can be clear sailing, Others do not get to claim ground on what you can and cannot do, Others do not get to claim ground on what you can and cannot do.
You will Prevail!, Nsdtp! Never Say Die Throughput!, There is hope in a New Day, Don’t forget an extra bottle of water can change a lot, Possible has yet to be defined, You will Prevail!, Past activation energy can be clear sailing, There is hope in a New Day, The future has yet to be written, Never Say Die!, Past activation energy can be clear sailing, Small changes do add up, Initial conditions can mean a lot, Possible is Power, Don’t forget an extra bottle of water can change a lot.
Customer Experience and Quality can be Improved, Encouragement Throughput has yet to be maximized, You will Prevail!, The future has yet to be written, Never Say Die!, Others do not get to claim ground on what you can and cannot do, Possible has yet to be defined, Nsdtp! Never Say Die Throughput!, Past activation energy can be clear sailing, Possible is Power, Never Say Die!, You can do it!, You can do it!, Possible has yet to be defined, Small changes do add up.
Initial conditions can mean a lot, Encouragement Throughput has yet to be maximized, You will Prevail!, Initial conditions can mean a lot, Never Say Die!, Never Say Die!, Others do not get to claim ground on what you can and cannot do, You can do it!, The future has yet to be written, Never Say Die!, Encouragement Throughput has yet to be maximized, The future has yet to be written, Nsdtp! Never Say Die Throughput!, There is hope in a New Day, Possible has yet to be defined.
Possible has yet to be defined, There is hope in a New Day, Don’t forget an extra bottle of water can change a lot, Possible is Power, Initial conditions can mean a lot, Others do not get to claim ground on what you can and cannot do, You can do it!, Small changes do add up, Nsdtp! Never Say Die Throughput!, Possible is Power, Small changes do add up, Customer Experience and Quality can be Improved, There is hope in a New Day, Never Say Die!, You can do it!.
Nsdtp! Never Say Die Throughput!, You can do it!, Small changes do add up, Past activation energy can be clear sailing, You will Prevail!, Past activation energy can be clear sailing, You can do it!, Encouragement Throughput has yet to be maximized, Nsdtp! Never Say Die Throughput!, Don’t forget an extra bottle of water can change a lot, Don’t forget an extra bottle of water can change a lot, Customer Experience and Quality can be Improved, Encouragement Throughput has yet to be maximized, Small changes do add up, Possible has yet to be defined.
The future has yet to be written, You can do it!, Don’t forget an extra bottle of water can change a lot, Don’t forget an extra bottle of water can change a lot, Possible is Power, Don’t forget an extra bottle of water can change a lot, Others do not get to claim ground on what you can and cannot do, Customer Experience and Quality can be Improved, Small changes do add up, Don’t forget an extra bottle of water can change a lot, The future has yet to be written, Possible has yet to be defined, Possible is Power, Initial conditions can mean a lot, You can do it!.
Never Say Die!, Never Say Die!, Possible is Power, You can do it!, There is hope in a New Day, Don’t forget an extra bottle of water can change a lot, The future has yet to be written, The future has yet to be written, Nsdtp! Never Say Die Throughput!, Past activation energy can be clear sailing, Don’t forget an extra bottle of water can change a lot, Don’t forget an extra bottle of water can change a lot, Nsdtp! Never Say Die Throughput!, You will Prevail!, Initial conditions can mean a lot.
Possible is Power, Others do not get to claim ground on what you can and cannot do, The future has yet to be written, Past activation energy can be clear sailing, Encouragement Throughput has yet to be maximized, Initial conditions can mean a lot, Others do not get to claim ground on what you can and cannot do, Initial conditions can mean a lot, Possible is Power, Customer Experience and Quality can be Improved, The future has yet to be written, Nsdtp! Never Say Die Throughput!, You can do it!, Possible is Power, Small changes do add up.
Encouragement Throughput has yet to be maximized, Possible is Power, There is hope in a New Day, Encouragement Throughput has yet to be maximized, Possible is Power, Past activation energy can be clear sailing, You will Prevail!, Initial conditions can mean a lot, Never Say Die!, Encouragement Throughput has yet to be maximized, Never Say Die!, You will Prevail!, Initial conditions can mean a lot, Others do not get to claim ground on what you can and cannot do, Possible is Power.
Possible has yet to be defined, Don’t forget an extra bottle of water can change a lot, Possible is Power, There is hope in a New Day, Possible is Power, Never Say Die!, Past activation energy can be clear sailing, The future has yet to be written, The future has yet to be written, Past activation energy can be clear sailing, Small changes do add up, Possible is Power, Customer Experience and Quality can be Improved, Don’t forget an extra bottle of water can change a lot, Don’t forget an extra bottle of water can change a lot.
You will Prevail!, Small changes do add up, You will Prevail!, Small changes do add up, Possible is Power, Others do not get to claim ground on what you can and cannot do, Nsdtp! Never Say Die Throughput!, Never Say Die!, Past activation energy can be clear sailing, Others do not get to claim ground on what you can and cannot do, Encouragement Throughput has yet to be maximized, Nsdtp! Never Say Die Throughput!, Don’t forget an extra bottle of water can change a lot, Customer Experience and Quality can be Improved, You will Prevail!.
Never Say Die!, Encouragement Throughput has yet to be maximized, Initial conditions can mean a lot, Past activation energy can be clear sailing, Nsdtp! Never Say Die Throughput!, Others do not get to claim ground on what you can and cannot do, You can do it!, Small changes do add up, Possible is Power, Possible has yet to be defined, You can do it!, Customer Experience and Quality can be Improved, Possible has yet to be defined, Possible has yet to be defined, Nsdtp! Never Say Die Throughput!.
Nsdtp! Never Say Die Throughput!, Possible has yet to be defined, Initial conditions can mean a lot, Nsdtp! Never Say Die Throughput!, Possible has yet to be defined, There is hope in a New Day, Small changes do add up, Encouragement Throughput has yet to be maximized, Never Say Die!, Others do not get to claim ground on what you can and cannot do, Nsdtp! Never Say Die Throughput!, There is hope in a New Day, Small changes do add up, Never Say Die!, There is hope in a New Day.
Never Say Die!, Encouragement Throughput has yet to be maximized, Others do not get to claim ground on what you can and cannot do, Initial conditions can mean a lot, Never Say Die!, Possible is Power, Possible has yet to be defined, Customer Experience and Quality can be Improved, Possible has yet to be defined, Small changes do add up, You will Prevail!, Don’t forget an extra bottle of water can change a lot, Encouragement Throughput has yet to be maximized, Nsdtp! Never Say Die Throughput!, Customer Experience and Quality can be Improved.
Others do not get to claim ground on what you can and cannot do, You will Prevail!, The future has yet to be written, Possible is Power, Others do not get to claim ground on what you can and cannot do, Initial conditions can mean a lot, Past activation energy can be clear sailing, Never Say Die!, You can do it!, You can do it!, Encouragement Throughput has yet to be maximized, Others do not get to claim ground on what you can and cannot do, Nsdtp! Never Say Die Throughput!, The future has yet to be written, Never Say Die!.
The future has yet to be written, You can do it!, Initial conditions can mean a lot, There is hope in a New Day, There is hope in a New Day, Nsdtp! Never Say Die Throughput!, There is hope in a New Day, The future has yet to be written, The future has yet to be written, You will Prevail!, There is hope in a New Day, Initial conditions can mean a lot, You can do it!, There is hope in a New Day, Don’t forget an extra bottle of water can change a lot.
Customer Experience and Quality can be Improved, Past activation energy can be clear sailing, Nsdtp! Never Say Die Throughput!, Nsdtp! Never Say Die Throughput!, Possible is Power, You can do it!, Others do not get to claim ground on what you can and cannot do, Customer Experience and Quality can be Improved, Small changes do add up, Possible is Power, Past activation energy can be clear sailing, There is hope in a New Day, Possible has yet to be defined, Don’t forget an extra bottle of water can change a lot, You will Prevail!.
Updated class with More Contrast, Useful for Accessibility
package color;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.Arrays;
import random.RandomUtil;
public class ColorUtil {
private static ArrayList<String> htmlHexColors;
public static ArrayList<String> getHtmlHexColorsSet() {
if (null != htmlHexColors) {
return htmlHexColors;
}
String arrayOfHtmlHexColors[] = {
"#000000", // Black
"#FF0000", // Red
"#00FF00", // Green
"#0000FF" // Blue
};
htmlHexColors = new ArrayList<>(Arrays.asList(arrayOfHtmlHexColors));
return htmlHexColors;
}
public static String getRandomEncouragingPhrase() {
String encouragingPhrase = random.RandomUtil.getRandomElementInListOfStrings(getHtmlHexColorsSet());
return encouragingPhrase;
}
public static String encloseStringInParagraphOfRandomColor(final String content) {
final StringWriter stringWriter = new StringWriter();
String randomColor = RandomUtil.getRandomElementInListOfStrings(getHtmlHexColorsSet());
String backgroundColor = "#222222";
if (randomColor.compareTo("#000000")==0) {
backgroundColor="#FFFFFF";
}
stringWriter.append("<p style=\"");
stringWriter.append("color:"+randomColor);
stringWriter.append(";");
stringWriter.append("background-color:"+backgroundColor);
stringWriter.append("\">");
stringWriter.append(content);
stringWriter.append("</p>");
return stringWriter.toString();
}
}
https://www.w3schools.com/html/html_styles.asp