Reviewed-on: #13 Co-authored-by: hitanshu310 <hitanshu98@gmail.com> Co-committed-by: hitanshu310 <hitanshu98@gmail.com>
17 lines
353 B
Java
17 lines
353 B
Java
package com.hithomelabs.princeton1.module5;
|
|
|
|
public abstract class AbstractCustomSorts<E> {
|
|
|
|
public abstract void sort(E[] arr);
|
|
|
|
// TODO: Implement this method
|
|
public void exch(E[] arr, int j, int i) {
|
|
}
|
|
|
|
// TODO: Implement this method
|
|
public boolean less(Comparable<E> e1, E e2) {
|
|
return e1.compareTo(e2) < 0;
|
|
}
|
|
|
|
}
|