Here you can find the source of pow(int value, int exp)
public static int pow(int value, int exp)
//package com.java2s; public class Main { public static int pow(int value, int exp) { return value == 2 ? 1 << exp : (int) Math.pow(value, exp); }/* w w w. java 2s . c om*/ }