Advertisement
Guest User

Untitled

a guest
Feb 17th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement