- class QiuMi
- {
- public double qiuMi(int a,int b)
- {
- return Math.pow(a,b);
- }
- public double qiuMi(double a,double b)
- {
- return Math.pow(a,b);
- }
- }
- class Demo2
- {
- public static void main(String[] args)
- {
- double a=new QiuMi().qiuMi(5,6);
- System.out.println(a);
- }
- }
复制代码 |