We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d0b09f commit e2bba66Copy full SHA for e2bba66
SortingAlgorithm.java
@@ -86,9 +86,10 @@ public Void doInBackground() throws InterruptedException {
86
for(traversing_index = 1; traversing_index < (SIZE - current_index); traversing_index++) {
87
if(bar_height[traversing_index - 1] > bar_height[traversing_index]) {
88
swap(traversing_index, traversing_index - 1);
89
+ traversing_index--; // just for annimation
90
- Thread.sleep(1);
91
- repaint();
+ Thread.sleep(1); // controls the speed
92
+ repaint(); //
93
}
94
95
0 commit comments