How to write the comment symbol in a string


i know there trick writing things such this, thougth 1 of might have quick answer:
error code:
code: [select]
client.println("accept: text/html, application/xhtml+xml, */*");
error:
code: [select]
java.lang.runtimeexception: missing */ end of /* comment */
at processing.app.sketch.scrubcomments(sketch.java:1719)
at processing.app.preproc.pdepreprocessor.writeprefix(pdepreprocessor.java:105)
at processing.app.sketch.preprocess(sketch.java:1390)
at processing.app.sketch.preprocess(sketch.java:1339)
at processing.app.sketch.build(sketch.java:1585)
at processing.app.sketch.build(sketch.java:1567)
at processing.app.editor$defaultrunhandler.run(editor.java:1897)
at java.lang.thread.run(thread.java:619)

perhaps adding '\' character help:
code: [select]
client.println("accept: text/html, application/xhtml+xml, */\*");

if doesn't work, can use fact 2 adjacent quoted strings merged:

code: [select]
client.println("accept: text/html, application/xhtml+xml, */" "*");

in both cases idea hide "/*" token java code doesn't have sense skip on string constants.


Arduino Forum > Using Arduino > Programming Questions > How to write the comment symbol in a string


arduino

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62