print(" $$$$$$\ $$$$$\ $$$$$$\ $$\ $$\ "+newline+
"$$ __$$\ \__$$ | $$ __$$\ $$ | $$ |"+newline+
"$$ / $$ | $$ | $$ / $$ | \$$\ $$ |"+newline+
"$$$$$$$$ | $$ | $$$$$$$$ | \$$$$ /"+newline+
"$$ __$$ | $$\ $$ | $$ __$$ | $$ $$< "+newline+
"$$ | $$ | $$ | $$ | $$ | $$ | $$ /\$$\"+newline+
"$$ | $$ | \$$$$$$ | $$ | $$ | $$ / $$ |"+newline+
"\__| \__| \______/ \__| \__| \__| \__|"+newline);
Hi all ! I am just trying to add ascii art to my games gui, and I get this error? How do I resolve this?
解决方案
The backslash character \ is an escape character in Java. The compiler thinks that you are attempting to escape the next character, and \_ is an invalid escape sequence. You need to escape the backslash itself. Replace every \ with \\.