public static void merge(Node a, Node b){
		Node p;
		if(a.data > b.data){
			p = new Node(b.data);
			b = b.next;
		} else{
			p = new Node(a.data);
			a = a.next;
		}
		Node t = p;
		while(a.next != null && b.next != null){
			if(a.data > b.data){
				t.next = b;
				b = b.next;
			}else{
				t.next = a;
				a = a.next;
			}
			t = t.next;
		}
		while(a.next != null){
			t.next = a;
			a = a.next;
		}
		while(b.next != null){
			t.next = b;
			b = b.next;
		}
		while(p.next != null){
			System.out.print(p.data+" ");
			p = p.next;
		}
		System.out.println(p.data);
	}