I am trying to finish this program for a homework assignment and This is the only thing not working. I get an expected error on this line: 

> 
> System.out.println(myChars.equals(complement));
> 
> 
> 

Here is my code

```
public class WCpalindrome {
  private static char[] dna = {'A', 'C', 'T', 'G'};
  private static ArrayList<Character> myChars = new ArrayList<Character>();
  private static ArrayList<Character> reverse = new ArrayList<Character>();
  private static ArrayList<Character> complement = new ArrayList<Character>();

public static char toUpperCase(char c) {
  if (c == 'A' || c == 'a') {
    return 'A';
  } else if (c == 'T' || c == 't') {
    return 'T';
  } else if (c == 'C' || c == 'c') {
    return 'C';
  }
  return 'G';
}

public static char getComplement(char c) {
  if (c == 'A' || c == 'a') {
    return 'T';
  } else if (c == 'T' || c == 't') {
    return 'A';
  } else if (c == 'C' || c == 'c') {
    return 'G';
  }
  return 'C';
}

public static void main(String[] args) {

  char current;
  int i = 0;

  //Get the input sequence
  while (StdIn.hasNextChar()) {
    current = StdIn.readChar();
    current = toUpperCase(current);
    myChars.add(current);
    StdOut.println(myChars.get(i));
    i++;
  }

  System.out.println();

  //Reverse the sequence
  int k = 0;
  int size = myChars.size() - 1;
  for (int j = size-1; j >= 0; j--) {
    current = myChars.get(j);
    StdOut.println(current);
    reverse.add(k, current);
    k++;
  }

  System.out.println();

  //Complement the reversed sequence
  int n = 0;
  size = myChars.size() - 1;
  for (n = 0; n < size; n++) {
    current = reverse.get(n);
    complement.add(getComplement(current));
    StdOut.println(complement.get(n));
  }
}

//Prints true if the original equals the complement of the reversal
//else it prints false
System.out.println(myChars.equals(complement));

```

}