Package com.kapil.javadocdemo
Class JavadocDemo
java.lang.Object
com.kapil.javadocdemo.JavadocDemo
Program to demonstrate how to generate HTML API documentation from Java source files using the Javadoc tool.
Demonstrates the use of Javadoc comments to document classes, methods, and their parameters.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor that prints a welcome message to the console. -
Method Summary
Modifier and TypeMethodDescriptionstatic long
calculateCube
(long number) Calculates the cube of the given number.static void
The main() method executes the program and calls thecalculateCube(long)
method with different values.
-
Constructor Details
-
JavadocDemo
public JavadocDemo()Default constructor that prints a welcome message to the console.
-
-
Method Details
-
main
The main() method executes the program and calls thecalculateCube(long)
method with different values.- Parameters:
args
- Command line arguments
-
calculateCube
public static long calculateCube(long number) Calculates the cube of the given number.The cube of a number is the number multiplied by itself three times. Example usage:
calculateCube(3)
returns27
.- Parameters:
number
- The number for which to calculate the cube.- Returns:
- The cube of the input number.
- See Also:
-