-
Notifications
You must be signed in to change notification settings - Fork 0
/
uses.java
50 lines (32 loc) · 957 Bytes
/
uses.java
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package Use;
import java.util.*;
import Linkedlist.LL;
import stack.*;
public class uses {
public static void main(String[] args) {
Stack<Integer> a = new Stack<>();
a.push(1);
a.push(2);
a.push(3);
a.push(4);
// // stackusiLL st = new stackusiLL();
// RevereaStack foo = new RevereaStack();
// foo.reverse(a);
String jk = revaStrusingstack.reversStr("to");
System.out.println(jk);
// for (int index = 0;!a.isEmpty(); index++) {
// System.out.println(a.peek());
// a.pop();
// }
// System.out.println(st.peek());
// st.pop();
// LL list = new LL();
// list.ADDFIRST(30);
// list.ADDFIRST(80);
// list.ADDFIRST(70);
// list.ADDFIRST(1000);
// list.addLast (67);
// list.reversethelinkedlist();
// list.Print();
}
}