<<< Predefined Classes and Methods | Index | Method Parameters >>> |
To use a method, you must know:
Name of the class containing the method (like Math)
Name of the package containing the class (like java.lang)
Name of the method (like pow) and list of parameters
import java.lang.*; // imports package
Math.pow( 2, 3 ); // calls power method in class Math
Math.pow( x, y ); // another call
<<< Predefined Classes and Methods | Index | Method Parameters >>> |