Not a statement?

I’m struggling with the Mad Lib project. Compiler is showing three errors. Two of them are -

“MadLibs.java:25: error: ‘;’ expected”

The third error is

"MadLibs.java:25: error: not a statement

Please help.

can you share it in a Codebyte? It’s easier to troubleshoot if I can run it, or at the very least copy and paste it to an editor.

Hello.
Towards the end of your story string, you have a name1 with no ++
That may be part of it.

2 Likes