?? p4_14.java
字號:
class op
{
public double a,b,c;
public op(double x,double y)
{
a=x;
b=y;
}
public op(double x)
{
c=x;
}
public void show(double a,double b)
{
System.out.println(Math.pow(a,b));
}
public void show(double c)
{
System.out.println(Math.sqrt(c));
}
}
public class p4_14
{
public static void main(String []args)
{
op z1=new op(2,3);
op z2=new op(9);
System.out.print("z1=");
z1.show(2,3);
System.out.print("z2=");
z2.show(9);
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -