title: Java code for RR and SJF CPU Scheduling Algorithms
body: <p>I have tried and searched for hours for a code which contains arrival time as an input in the code but, I couldn't and can't find any.
  The rest of the code is easy it's just input and output.
  All what I need is the <strong>Java code</strong> with simple <strong>for loop</strong> which calculates <em>turnaround time</em> and <em>waiting time</em> for each process for </p>
  
  <ul>
  <li>Round Robin</li>
  <li>Shortest Job First</li>
  </ul>
  
  <p>algorithms. </p>