title: Member Functions showing error in JAVA (intelliJ IDEA)
body: <p>I coded a program which is in intelliJ IDEA.But i dont know y all the functions (objects) are showing error saying..
  1. Cannot resolve method "MulCom(complex1)"
  2. Cannot resolve method "SumCom(complex1)"
  3. Cannot resolve method "SubCom(complex1)"</p>
  
  <p>The code is as follows:</p>
  
  <pre><code>import java.util.Scanner;
  public class complex1 {
      public static void main(String[] args) {
          complex1 arg1 = new complex1();
          complex1 arg2 = new complex1();
          arg1.input();
          arg1.show();
  //  complex arg1;
          arg2.input();
          arg2.show();
          complex1 c = new complex1();
          System.out.println("Sum:");
          c.SumCom(arg2);
          c.show();
          System.out.println("Product:");
          c.MulCom(arg2);
          c.show1();
          System.out.println("difference:");
          c.SubCom(arg1);
          c.show();
      }
  }
  
      class complex
      {
          double re, img;
          double a, b;
  
          complex() {
              re = 0;
              img = 0;
              a = 0;
              b = 0;
          }
  
          public void input() {
              System.out.println("Real:");
              Scanner re = new Scanner(System.in);
              System.out.println("Imagnary:");
              Scanner img = new Scanner(System.in);
          }
  
          public complex SumCom(complex arg1) {
              complex temp = new complex();
              temp.re = arg1.re + arg1.re;
              temp.img = arg1.img + arg1.img;
              return temp;
          }
  
          public complex SubCom(complex arg1) {
              complex temp = new complex();
              temp.re = arg1.re - arg1.re;
              temp.img = arg1.img - arg1.img;
              return temp;
          }
  
          public complex MulCom(complex arg1) {
              complex temp = new complex();
              temp.a = ((arg1.re) * (arg1.re)) - ((arg1.img) * (arg1.img));
              temp.b = ((arg1.re) * (arg1.img)) + ((arg1.re) * (arg1.img));
              return temp;
  
          }
  
          public void show() {
              System.out.println(re + "," + img + "i");
          }
  
          public void show1() {
              System.out.println(a + "," + b + "i");
          }
      }
  </code></pre>
  
  <p>Im new to JAVA, so i need help for assignment. </p>