clientcomplex.java

来自「some programs in java」· Java 代码 · 共 35 行

JAVA
35
字号
/*
 * Main.java
 *
 * Created on 17 octombrie 2007, 09:16
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package lab32;

/**
 *
 * @author Alina.Stanila
 */
public class ClientComplex {
    
    /** Creates a new instance of Main */
    public ClientComplex() {
    }
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Complex z1=new Complex(-2,5);
        System.out.println(z1);
        Complex z2=new Complex(1,2);
        System.out.println(z2);
        System.out.println("Suma=" +Complex.suma(z1,z2));
        System.out.println("Produs"+Complex.produs(z1,z2));
    }
    
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?