How to solve error:class,interface and enum expected in some codes

Mmm… this looks like Java, not C++, and definitely not UnrealEngine issue… I’m no expert in Java, and it’s going to be tricky without an error log/output.