Java Mad Libs Error

Hi,

When trying to log the story to the console for the above project like System.out.println(story); , I receive the following error message:

MadLibs.java:30: error: class, interface, or enum expected
System.out.println(story);
^
1 error

Could someone tell me why this is please? Thank you

Hi,

Can you provide a bit more of the code you wrote along with this. It’s probable that either the print statement is misplaced, or there’s a missing closing symbol.