/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Adpator;

import java.util.Scanner;
public class AdapterTest {
    public static void main(String []a){

        Scanner input=new Scanner(System.in);
        NumArthematic numInt=null;
        System.out.println("Enter c for complex and n for normal addition: ");
        String check=input.nextLine();

        if(check.equals("n")){
            numInt = new Numbers();
        }
       if(check.equals("c")){

            numInt=new AdapterClass(new Complex());
        }
        numInt.addnum();
        numInt.subNum();
    }
}
