question: protected boolean test ( double val1 , double val2 , StringBuffer buf ) { boolean ret = false ; switch ( op ) { case 1 : ret = val1 == val2 ; break ; case 2 : ret = val1 != val2 ; break ; case 3 : ret = val1 < val2 ; break ; case 4 : ret = val1 > val2 ; break ; case 5 : ret = val1 <= val2 ; break ; case 6 : ret = val1 >= val2 ; } if ( buf != null ) { String operation = null ; switch ( op ) { case 1 : operation = ( ret + "=" + val1 + "==" + val2 ) ; break ; case 2 : operation = ( ret + "=" + val1 + "!=" + val2 ) ; break ; case 3 : operation = ( ret + "=" + val1 + "<" + val2 ) ; break ; case 4 : operation = ( ret + "=" + val1 + ">" + val2 ) ; break ; case 5 : operation = ( ret + "=" + val1 + "<=" + val2 ) ; break ; case 6 : operation = ( ret + "=" + val1 + ">=" + val2 ) ; } buf . append ( "\n   " + toString ( ) + ":" + operation ) ; } return ret ; }
target:  The basic test for the operator, returning val1 op val2.