Here you can find the source of pow2(final int a)
Parameter | Description |
---|---|
a | A value. |
public static int pow2(final int a)
//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; } }