How to properly reference methods in Javadoc and what is {@link}?
Hello everyone! I just started learning Java and am writing documentation for my project. I ran into a problem: I want to make a link to another method in Javadoc comments to make the documentation easier to read. For example, I have a class `Calculator` with methods `add()` and `sumAndPrint()`. In the second method, I want to specify in the description that it calls `add()`.
I tried writing just `#add` or `{@link add}`, but it doesn't work — the link doesn't appear in the generated HTML documentation. The official documentation mentions something about `{@link #methodName}`, but I don't understand how to correctly specify the full path if the method is in another class or has parameters.
Here's an example of my code:
```java
/**
* Calculator for simple arithmetic operations.
*/
public class Calculator {
```