Skip to content
Snippets Groups Projects
Commit 6f96027b authored by loick.pipolo's avatar loick.pipolo
Browse files

zz

parent 2de054e3
Branches
Tags
No related merge requests found
public class BinaryHeap{
private int[] heap;
public BinaryHeap(){
this.heap = new int[10];
}
public BinaryHeap(int[] values){
int[] newHeap = new int[values.length];
for (int value : values){
for (int i = 0; i < newHeap.length; i++){
}
System.out.println(newHeap[1]);
}
this.heap = newHeap;
}
public static void main(String[] args){
BinaryHeap test = new BinaryHeap(new int[]{10,2});
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment