powercalculator.java

来自「BOOK:Beginning Algorithms Code Example」· Java 代码 · 共 17 行

JAVA
17
字号
package com.wrox.algorithms.iteration;/** * Generic interface for calculating the value of one integer raised to the power of another. * */public interface PowerCalculator {    /**     * Calculates the value of one integer raised to the power of another.     *     * @param base The base to be raised.     * @param exponent The power to which the base will be raised.     * @return The base raised to the exponent.     */    public int calculate(int base, int exponent);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?