public boolean hasNext(){
  if (deal > 32000) {
    sc.close();
  }
  return (deal <= 32000);
}

public boolean hasNext ( ) { if ( deal > 32000 ) { sc . close ( ) ; } return ( deal <= 32000 ) ; }
if the deal has more deals , this returns true ; false otherwise .
