Guest User

Untitled

a guest
May 26th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. public Rlist<T> find(T d) {
  2.  
  3. Rlist<T> l = this;
  4.  
  5. do {
  6. if ( l.data != null && l.data.equals(d) ) {
  7. return l;
  8. }
  9.  
  10. l = l.n;
  11.  
  12. } while ( l != this );
  13.  
  14. return null;
  15. }
Add Comment
Please, Sign In to add comment