In the above code I have implement a very simple simulation of the round robin algortihm using java 8. I have automatically calculate the time quantum [1].
In here I have used JFreeChart library as well to create the gantt chart.[2]
[1] https://pdfs.semanticscholar.org/a163/0bb661332e09c156ae1f494963dd6023ce50.pdf