Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dd8ed98

Browse filesBrowse files
committed
VisualSortArray: Added blank lines.
1 parent 26dbbe4 commit dd8ed98
Copy full SHA for dd8ed98

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed

‎src/io/nayuki/sortalgodemo/visual/VisualSortArray.java

Copy file name to clipboardExpand all lines: src/io/nayuki/sortalgodemo/visual/VisualSortArray.java
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ public void finishInitialization() {
124124
values.setOpaque(j, x);
125125
if (!isInitialized)
126126
return;
127+
127128
setElementInternal(i, ElementState.ACTIVE);
128129
setElementInternal(j, ElementState.ACTIVE);
129130
swapCount.setOpaque(swapCount.getPlain() + 1);
@@ -166,6 +167,7 @@ public long getComparisonCount() {
166167
return comparisonCount.getOpaque();
167168
}
168169

170+
169171
public long getSwapCount() {
170172
return swapCount.getOpaque();
171173
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.