So in my class declared as "public class pcb", I have the following constructor: public pcb(int p, int a, int b).
In public static void main(String[] args) I try to call the constructor in a for loop where I add a "pcb" into a different position in an array. Here is the for loop where the last line is where I get the error:
for(int i=0; i<numJob; i++){
pI = scan.nextInt();
arr = scan.nextInt();
bst = scan.nextInt();
notHere[i]=new pcb(pI, arr, bst);
}
What am I doing wrong? Is it syntax or is it the structure of my program. I haven't used Java that much and I think that's my main problem.