Search code examples
javajavadoc

How to write */ in a javadoc


Possible Duplicate:
How to quote “*/” in JavaDocs

I want to put following doc to a method:

Route example:

<code>
get("/users/*/{id}") -> UsersController.show(id)
</code>

But since there is a */ in the code, the javadoc will be break on that position, the java code can't be compiled.

How to solve this?


Solution

  • You can escape the * as &#42; or / as &#47;