(Fixed!) Need Help With Mad Libs Story (Java)

I’ve been trying to work on the Mad Libs Story for a while, and I have no clue why I’m getting errors right now . Could someone please help me with this?
The Code:

 public class MadLibs {
  /*
  Mad Lib Story Generator
  Author: Mel
  Date: December 12, 2019
  */
  	public static void main(String[] args){
      String name1 = "Piro";
      String adjective1 = "quickly";
      String adjective2 = "hastily";
      String adjective3 = "surprisingly";
      String verb1 = "running";
      String noun1 = "crab";
      String noun2 = "snek";
      String noun3 = "space dust";
      String noun4 = "even crazier space dust";
      String noun5 = "nope rope";
      String noun6 = "Nicholas Cage";
      String name2 = "Soki";
      int number = 69;
      String place1 = "Nicholas Cage's House";
      
      
      //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.";
    }       
}

The Errors:

MadLibs.java:25: error: ‘;’ expected
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.”;
^
MadLibs.java:25: error: ‘;’ expected
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.”;
^
MadLibs.java:25: error: not a statement
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.”;
^
MadLibs.java:25: error: ‘;’ expected
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.”;
^
MadLibs.java:25: error: not a statement
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.”;
^
MadLibs.java:25: error: ‘;’ expected
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.”;
^
MadLibs.java:25: error: not a statement
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.”;
^
MadLibs.java:25: error: ‘;’ expected
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.”;
^
MadLibs.java:25: error: not a statement
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.”;
^
MadLibs.java:25: error: ‘;’ expected
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.”;
^
MadLibs.java:25: error: not a statement
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.”;
^
MadLibs.java:25: error: ‘;’ expected
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.”;
^
MadLibs.java:25: error: not a statement
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.”;
^
MadLibs.java:25: error: ‘;’ expected
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.”;
^
MadLibs.java:25: error: not a statement
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.”;
^
MadLibs.java:25: error: ‘;’ expected
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.”;
^
MadLibs.java:25: error: not a statement
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.”;
^
MadLibs.java:25: error: ‘;’ expected
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.”;
^
MadLibs.java:25: error: not a statement
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.”;
^
MadLibs.java:25: error: ‘;’ expected
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.”;
^
MadLibs.java:25: error: not a statement
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.”;
^
MadLibs.java:25: error: ‘;’ expected
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.”;
^
MadLibs.java:25: error: not a statement
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.”;
^
MadLibs.java:25: error: ‘;’ expected
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.”;
^
MadLibs.java:25: error: not a statement
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.”;
^
MadLibs.java:25: error: ‘;’ expected
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.”;
^
MadLibs.java:25: error: not a statement
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.”;
^
MadLibs.java:25: error: ‘;’ expected
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.”;
^
MadLibs.java:25: error: not a statement
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.”;
^
MadLibs.java:25: error: ‘;’ expected
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.”;
^
MadLibs.java:25: error: not a statement
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.”;
^
MadLibs.java:25: error: ‘;’ expected
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.”;
^
MadLibs.java:25: error: not a statement
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.”;
^
MadLibs.java:25: error: ‘;’ expected
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.”;
^
MadLibs.java:25: error: not a statement
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.”;
^
MadLibs.java:25: error: ‘;’ expected
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.”;
^
36 errors

Hello, @kimberlysimmons23974.

Welcome to the forums.

It appears you altered the original String story variable. The error message is telling you that you are missing semicolons because it is expecting one after every set of double quotes following the initial
opening double quote. The code provided by Codecademy when you began the project contained +'s before and after each variable in the value assigned to story. The + is a string concatenation operator.

The original value assigned to story was this:

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.";

If you copy the value here, and replace what you have in your code, your program should work. Alternatively, you could go through, and manually add the concatenation operator in each place it belongs.

Happy coding!

thank you! that helped a lot.

2 Likes

Hi

Madlib.java completed

Cheers