if ( symbol.equals("fail") ) { throw new NullPointerException(); } if ( symbol.equals("XXX") ) return( (float) 55.25 ); else return( 0 );