Code: Select allpublic class Story {
public static void main(String[] args) {
String[] once = { "Once ", "Once Upon a Time ", "Many Moons Ago " };
String[] person = { "a dwarf ", "an elf ", "a human ", "a goblin ", "a wizard " };
String[] names1 = { "Sar", "Sad", "Axe", "Door", "Mor", "Kor", "Bread", "Beer", "Duff", "Pig", "Shack", "Mac" };
String[] names2 = { "brain", "head", "leg", "foot", "hand", "cave", "wine", "hill", "zorg", "hat", "sull", "gull", "on", "osus" };
String[] town1 = { " Dur", " Hill", " Fort", " Road", " Cross", " Ugly", " Attle", " Little", " Sleep", " Shack", " Char" };
String[] town2 = { "ham ", "ton ", "shire ", "stead ", "market ", "minor " };
String[] was1 = { "was ", "twas " };
String[] was2 = { "eating a frog ", "eating a pie ", "eating a leg of lamb", "eating some ham ", "quietly thinking ", "drawing " };
String[] at1 = { "the local inn, the" };
String[] inn1 = { "Prancing", "King's", "Royal", "Cow's", "Vegetable", "Smith's" };
String[] inn2 = { " Arms,", " Legs,", " Hair,", " Crown,", " Pickaxe," };
String[] titles1 = { " the Wizard", " Lord", " Prince", " the adventurer", " the nomad" };
String[] names1a = { "Er", "Gan", "Sal", "Dorf", "Lop", "Golp", "Da" };
String[] names2a = { "bad", "bas", "endor", "dalf", "on", "hof" };
String[] titles2 = { " the Stupid ", " The Wise ", " The Forgetful ", " ", " ", " The Explorer ", " ", " ", " ", " " };
String[] event1 = { "burst in, ", "thundered through the door, ", "ran into the inn, " };
String[] event2 = { "and said ", "and screamed ", " and shouted ", " and declared " };
String[] event3 = { "'I'M GOING ON AN ADVENTURE!'", "'I'M GOING TO FIND SOME TREASURE!'", "'ANYONE WANNA GO ON AN ADVENTURE!?'" };