public static boolean assertEquals(final double a,final double b){
  if (Double.isNaN(a) && Double.isNaN(b)) {
    return true;
  }
  if (a == b) {
    return true;
  }
  throw new ExamException(a + " != " + b);
}

public static boolean assertEquals ( final double a , final double b ) { if ( Double . isNaN ( a ) && Double . isNaN ( b ) ) { return true ; } if ( a == b ) { return true ; } throw new ExamException ( a + " != " + b ) ; }
check if two doubles are equal .
