public class MadLibs {
/*
This program generates a mad libbed story.
Author: J
Date: 3/6/2023
*/
public static void main(String args){
String name1 = "Pikachu" ;
String adjective1 = "Mad" ;
String adjective2 = "Happily" ;
String adjective3 = "Loudly" ;
String verb1 = "Walking" ;
String noun1 = "Book" ;
String noun2 = "Art" ;
String noun3 = "City" ;
String noun4 = "Doctor" ;
String noun5 = "Park" ;
String noun6 = "Television" ;
String name2 = "Charmander" ;
int number = 7;
String place1 = "Miami" ;
//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.β;
System.out.printIn(story) ;
}
}
It keeps saying there is 1 error in the Systems.out.printIn(story) ;
β MadLibs.java:25: error: reached end of file while parsing
System.out.printIn(story) ;
^
1 errorβ
Whatβs wrong with my code? Thanks for taking the time to help. Iβm a beginner, lol.