Java Number Power pow2(final int a)

Here you can find the source of pow2(final int a)

Description

pow

License

Open Source License

Parameter

Parameter Description
a A value.

Return

a*a.

Declaration

public static int pow2(final int a) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**/*from w  w w .  j  a va 2 s. c  o m*/
     * @param a
     *            A value.
     * @return a*a.
     */
    public static int pow2(final int a) {
        return a * a;
    }

    /**
     * @param a
     *            A value.
     * @return a*a.
     */
    public static long pow2(final long a) {
        return a * a;
    }

    /**
     * @param a
     *            A value.
     * @return a*a.
     */
    public static float pow2(final float a) {
        return a * a;
    }

    /**
     * @param a
     *            A value.
     * @return a*a.
     */
    public static double pow2(final double a) {
        return a * a;
    }
}

Related

  1. pow10(int n)
  2. pow16(float a)
  3. pow2(double base, double power)
  4. pow2(double num)
  5. pow2(double x, int n)
  6. pow2(final int n)
  7. pow2(final int x)
  8. pow2(int c)
  9. pow2(int i)