No enclosing instance of type fbMain is accessible. Must qualify the allocation with an enclosing instance of type fbMain
<p>So in my class declared as "<strong>public class pcb</strong>", I have the following constructor: <strong>public pcb(int p, int a, int b).</strong></p>

<p>In <strong>public static void main(String[] args)</strong> 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:</p>

<pre><code>for(int i=0; i&lt;numJob; i++){
   pI = scan.nextInt();
   arr = scan.nextInt();
   bst = scan.nextInt();
   notHere[i]=new pcb(pI, arr, bst);
}
</code></pre>

<p>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.</p>
