FCFS and Round Robin Implementation in Java