Class JavadocDemo

java.lang.Object
com.kapil.javadocdemo.JavadocDemo

public class JavadocDemo extends Object
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 Details

    • JavadocDemo

      public JavadocDemo()
      Default constructor that prints a welcome message to the console.
  • Method Details

    • main

      public static void main(String[] args)
      The main() method executes the program and calls the calculateCube(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) returns 27.

      Parameters:
      number - The number for which to calculate the cube.
      Returns:
      The cube of the input number.
      See Also: