Skip to content

Commit 6fc27e2

Browse files
committed
removed tabs with spaces
1 parent 9476cdf commit 6fc27e2

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

contents/stacks_and_queues/code/java/Queue.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,24 +48,24 @@ public class Queue<T> implements IQueue<T> {
4848
private List<T> list;
4949

5050
public Queue() {
51-
this.list = new ArrayList();
51+
this.list = new ArrayList();
5252
}
5353

5454
public T dequeue() {
55-
return this.list.remove(0);
55+
return this.list.remove(0);
5656
}
5757

5858
public int enqueue(T element) {
59-
this.list.add(element);
60-
return this.size();
59+
this.list.add(element);
60+
return this.size();
6161
}
6262

6363
public int size() {
64-
return this.list.size();
64+
return this.list.size();
6565
}
6666

6767
public T peek() {
68-
return this.list.get(0);
68+
return this.list.get(0);
6969
}
7070

7171
}

contents/stacks_and_queues/code/java/Stack.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,24 +47,24 @@ public class Stack<T> implements IStack<T> {
4747
private List<T> list;
4848

4949
public Stack() {
50-
this.list = new ArrayList<>();
50+
this.list = new ArrayList<>();
5151
}
5252

5353
public T pop() {
54-
return this.list.remove(this.size() - 1);
54+
return this.list.remove(this.size() - 1);
5555
}
5656

5757
public int push(T element) {
58-
this.list.add(element);
59-
return this.size();
58+
this.list.add(element);
59+
return this.size();
6060
}
6161

6262
public int size() {
63-
return this.list.size();
63+
return this.list.size();
6464
}
6565

6666
public T peek() {
67-
return this.list.get(this.size() - 1);
67+
return this.list.get(this.size() - 1);
6868
}
6969

7070
}

0 commit comments

Comments
 (0)