📄 powercalculator.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -