This week's giveaway is in the Java/Jakarta EE forum. We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line! See you should be outputting HTML. What does HTML do with a newline? Ignores it.
(And why are you generating HTML with an out.println()???)
If you MUST use scriptlets (which you shouldn't), you can import classes into your JSP by using the page directive. That way, you don't have to write the fully-qualified names of all the classes. For example: