FileDocCategorySizeDatePackage
TestPower.javaAPI DocExample330Sat Sep 29 23:45:34 BST 2001None

TestPower.java

// raising a number to the power of another
import java.io.*;

class TestPower {
  public static void main (String[] args) {
    System.out.print("3 to the power 4 is: ");
    System.out.println(Math.pow(3,4)); ///calculate and print
  } // end main
//why do we get away with 3 and 4 when it takes doubles?
} // end class