SHARE
TWEET

Untitled

a guest Feb 20th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public void vlozPrvni(T data) {
  2.         Prvek p = new Prvek(data);
  3.         if (aktualni == null) {
  4.             p.dalsi = null;
  5.             p.predchozi = null;
  6.             aktualni = p;
  7.         }else{
  8.             while (aktualni.predchozi != null) {                
  9.                 aktualni = aktualni.predchozi;
  10.             }
  11.             aktualni.predchozi = p;
  12.             p.dalsi = aktualni;
  13.         }
  14.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top