📄 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);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -