Creating JavaDoc With Tags

package com.company;
/**
* This class is to demonstrate what javadoc is and how it is used in the java industry
* This is <i>italic</i> word<p>this is a new paragraph</p>
* @author Aryan
* @version 0.1
* @since 2002
* @see <a href="https://docs.oracle.com/en/java/javase/14/docs/api/index.html" target="_blank">Java Docs</a>
*/
public class tuts {
public void add(int a, int b){
System.out.println("The sum is: " + a+b);
}
public static void main(String[] args) {
System.out.println("This is my main method");
}
}

Comments

Popular posts from this blog

Creating a Thread by Extending Thread class

Constructors from Thread class in Java