Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions src/array/visualizer/AAFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
package array.visualizer;

/**
*
* @author S630690
*/
interface AAFrame {
abstract void reposition();
abstract boolean isVisible();
abstract void dispose();
interface AAFrame
{
void reposition();

boolean isVisible();

void dispose();
}
10 changes: 6 additions & 4 deletions src/array/visualizer/ArrayController.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

public class ArrayController
{
public final int [] array;
public final int[] array;
public final int length;
public final ArrayList<Integer> marked;
public long aa;
Expand All @@ -21,19 +21,21 @@ public ArrayController(int length)

public void clearMarked()
{
for(int i = 0; i < length; i++)
for (int i = 0; i < length; i++)
{
marked.set(i, -5);
}
}

public int get(int index)
{
aa ++;
aa++;
return array[index];
}

public int compare(int a, int b)
{
comps ++;
comps++;
return Integer.compare(array[a], array[b]);
}
}
Loading