The Java API provides a class named Math, which contains number of static methods ... y = 2.0; // Get the power. result = Math.pow(x, y); // Display result.
確定! 回上一頁