Avatar ·

How to properly add a link to an external URL in Javadoc?

Hello everyone! I'm a beginner Java developer writing documentation for my project. I need to add a link to an external site (e.g., documentation of a third-party library or an article) in Javadoc comments. I know that inside Javadoc you can reference other classes using `{@link SomeClass}`, but what if I need to specify a URL like `https://example.com/docs`? I tried just inserting the URL into the comment text — it displays as plain text but is not clickable. I attempted to use the HTML tag ``, but I'm not sure if that's correct for Javadoc. Here's an example of my code: ```java /** * This method uses an algorithm from an article on an external resource. * More details: https://example.com/algorithm */ public void myMethod() { // ... } ``` In the generated docu