I have a ProcessHeap class that has two fields:
Heap: an array of type Process which represents the heap
Size: the number of elements in the heap
My constructor and attributes look like this:
private Process[] heap;
private int size;
private static int counter = 0;
//Paramaterized construct
public ProcessHeap(Process[] heap, int size) {
this.heap = heap;
this.size = size;
The problem is, we were given a driver and at the start of the driver I am getting an error particularly on (HEAP_SIZE)
This is the line:
final int HEAP_SIZE = 100;
ProcessHeap heap = new ProcessHeap(HEAP_SIZE); // gives this error:
The error upon mouse-over states:
ProcessHeap (Process[], int) in ProcessHeap cannot be applied to (int)