-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFastDS.java
More file actions
30 lines (22 loc) · 769 Bytes
/
FastDS.java
File metadata and controls
30 lines (22 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package fastds;
class FastDS{
public static void main(String[] args) {
MyLinkedList list=new MyLinkedList();
MyLinkedList listB=new MyLinkedList();
list.addLast(8);
list.addLast(2);
list.addLast(9);
list.addLast(1);
System.out.println("LIST A; ");
list.print();
System.out.println("");
System.out.println("LIST B;");
listB.addLast(7);
listB.addLast(2);
listB.addLast(4);
listB.print();
System.out.println("");
System.out.println("FINAL ADDITION IS; ");
ListAdd.listAdd(list.head, listB.head, list.COUNT, listB.COUNT);
}
}