Class Main


public class Main extends Object
This is the Main class
Version:
1.0.1
Author:
Justin Drtvic
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    addition(int left, int right)
    Deprecated.
    deprecated since 3.0.0
    static void
    main(String[] args)
    this is the main function, which is needed to execute the code

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Main

      public Main()
  • Method Details

    • main

      public static void main(String[] args)
      this is the main function, which is needed to execute the code
      Parameters:
      args - params passed by the command line
    • addition

      public static int addition(int left, int right)
      Deprecated.
      deprecated since 3.0.0
      addition of two integer numbers
      Parameters:
      left - number for left side
      right - number for right side
      Returns:
      sum of two numbers
      Throws:
      IllegalArgumentException - for numbers smaller than 0
      Since:
      Java API 7
      See Also: