1 Star 0 Fork 0

besti1923/JAVA

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
complex_number2Test.java 637 Bytes
一键复制 编辑 原始数据 按行查看 历史
yifei 提交于 5年前 . shiyan4
package text.java;
public class complex_number2Test {
public static void main(String[] args) {
complex_number2 a;
complex_number2 b;
complex_number2 c;
a=new complex_number2(3,-4);
System.out.println("the module of a is "+a.length());
b=new complex_number2(6,7);
c=new complex_number2(11,1);
System.out.print("the result of b compared with c :"+" ");
if(b.compareTo(c)==0) System.out.println("they have same module");
else if(b.compareTo(c)==1) System.out.println("b has bigger module");
else System.out.println("c has bigger module");
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/besti1923/java.git
git@gitee.com:besti1923/java.git
besti1923
java
JAVA
master

搜索帮助