Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Elem {
- private int number;
- private static int count = 0;
- private Elem next;
- Elem(int number){
- this.number = number;
- count++;
- next = this;
- }
- public int getNumber(){
- return number;
- }
- public int getCount(){
- return count;
- }
- private boolean checkLength(){
- return count > 0;
- }
- public void insertAfter(Elem x){
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement