You did not specify all the relevant code, but the error indicates that pcb is an inner class of fbMain :
public class fbMain {
You can fix this error by making pcb static:
public static class pcb { }
Or moving the class to its own file. Or, if pcb cannot be static (since it is associated with an fbMain instance), you can create a new pcb by passing the fbMain instance:
notHere[i] = instanceOfFbMain.new pcb(pI, arr, bst);
This is most likely the first thing you want. Also note that by convention, Java type names begin with an uppercase letter.
Mark peters
source share