链表实现

static class Node{
        int data;
        Node next;
        Node pre;
        Node(int data){
            this.data = data;
        }
    }