title: Trying to make a program that imitates a Process Table
body: <p><br>I am trying to create a program that is just like a Process Table. <br>I have to implement a class PCB (Process Control Block) with several fields such as:<br>process name (a string)
  <br>process priority (an integer)
  <br>register set values (an object of a class Register Set containing the following fields: XAR, XDI, XDO, PC.</p>
  
  <hr>
  
  <p>Then my program needs to then create a Process Table data structure as either an array (max size 100 elements) or an arraylist of type PCB, and initialize the array with data from the file "processes1.txt" Then the Process Table arrraylist has to print out its contents by each process. </p>
  
  <hr>
  
  <p>So my questions are:<br>
  1. How many programs/classes do I have to write? Is it 3. The first program that creates the Process Table arraylist of PCB. The 2nd class would be the PCB class that defines the PCB fields. 
  <br>
  2. How would the first program initialize the arraylist with the data from the text file?
  <br>
  3. Could I use an ArrayList of an ArrayList? and how would I do that?
  <br><br>Thank you in advance. </p>