Skip to content

Commit 31ef19e

Browse files
authored
Tidying comments and parentheses
1 parent 51d998b commit 31ef19e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ArrayQueue/ArrayQueue.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void enqueue(T element) {
5353

5454
public T dequeue() {
5555

56-
//checdk for these error conditions:
56+
//check for these error conditions:
5757
//check if queue is empty
5858
if (queueCount == 0) {
5959

@@ -97,9 +97,7 @@ public String toString() {
9797
String str = "FRONT[";
9898
for(int index = 0; index < queueCount; index++) {
9999
str += " " + items[index];
100-
101100
}
102101
return str += "]BACK";
103102
}
104-
105103
}

0 commit comments

Comments
 (0)