ok so im lost as to what it is thats missing ive been racking my head trying to figure out why it wont show the story i get a blank screen when i run it when i leave the System.out.println() blank and when i put System.out.println(story) it gives me an error im so lost did i miss a step somewhere?
public class MadLibs {
/*
This program generates a mad libbed story.
Author: Cristian
Date: 4/24/24
*/
public static void main(String[ ] args){
String name1 = “Joseph Flemming”;
String name2 = “Josiah Dirk”;
String adjective1 = “amazing”;
String adjective2 = “good”;
String adjective3 = “abnormally”;
String noun1 = “women”;
String noun2 = “love”;
String noun3 = “music”;
String verb1 = “sing”;
String place1 = “rome”;
String noun4 = “men”;
String noun5 = “acid”;
String noun6 = “donkeys”;
int number = 2055;
System.out.println(“Story”);
//The template for the story
String story = "This morning "+name1+" woke up feeling "+adjective1+". 'It is going to be a "+adjective2+" day!' Outside, a bunch of "+noun1+"s were protesting to keep "+noun2+" in stores. They began to "+verb1+" to the rhythm of the "+noun3+", which made all the "+noun4+"s very "+adjective3+". Concerned, "+name1+" texted "+name2+", who flew "+name1+" to "+place1+" and dropped "+name1+" in a puddle of frozen "+noun5+". "+name1+" woke up in the year "+number+", in a world where "+noun6+"s ruled the world.";
}
}