SHARE
TWEET

Untitled

a guest Feb 17th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3.  
  4. public class Elem {
  5.     private int number;
  6.     private static int count = 0;
  7.     private Elem next;
  8.     Elem(int number){
  9.         this.number = number;
  10.         count++;
  11.         next = this;
  12.     }
  13.     public int getNumber(){
  14.         return number;
  15.     }
  16.     public int getCount(){
  17.         return count;
  18.     }
  19.     private boolean checkLength(){
  20.         return count > 0;
  21.     }
  22.     public void insertAfter(Elem x){
  23.  
  24.     }
  25. }
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