@Override public String toString(){
  String str="";
  for (  Condition cond : subconditions) {
    str+=cond.toString();
switch (operator) {
case AND:
      str+=" ^ ";
    break;
case OR:
  str+=" v ";
break;
}
}
return str.substring(0,str.length() - 3);
}

@ Override public String toString ( ) { String str = "" ; for ( Condition cond : subconditions ) { str += cond . toString ( ) ; switch ( operator ) { case AND : str += " ^ " ; break ; case OR : str += " v " ; break ; } } return str . substring ( 0 , str . length ( ) - 3 ) ; }
returns a string representation of the complex condition
