Here you can find the source of square(double a)
public static double square(double a)
//package com.java2s; public class Main { public static double square(double a) { return a * a; }/*from w w w . jav a 2 s. com*/ public static float square(float a) { return a * a; } public static int square(int a) { return a * a; } public static long square(long a) { return a * a; } }