Here you can find the source of square(float number, int power)
@SuppressWarnings("unused") private static float square(float number, int power)
//package com.java2s; //License from project: Open Source License public class Main { @SuppressWarnings("unused") private static float square(float number, int power) { float newNumber = 1; for (int i = 0; i < power; i++) { newNumber = newNumber * number; }/* www .j a v a2s .c o m*/ return newNumber; } }