public synchronized Object check(){
  SoftReference s=soft;
  if (s == null)   return null;
  return s.get();
}

public synchronized Object check ( ) { SoftReference s = soft ; if ( s == null ) return null ; return s . get ( ) ; }
checks to see what object is being pointed at by this ref and returns it .
