public class SortableArray extends Object implements Comparable<SortableArray>
Constructor and Description |
---|
SortableArray(int... arr) |
SortableArray(int size) |
SortableArray(List<Integer> arr) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SortableArray that) |
boolean |
equals(Object obj) |
int |
get(int i) |
int |
hashCode() |
void |
set(int i,
int value) |
String |
toString() |
public SortableArray(int size)
public SortableArray(int... arr)
public void set(int i, int value)
public int get(int i)
public int compareTo(SortableArray that)
compareTo
in interface Comparable<SortableArray>
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.