How to run PageReplacement Program (LRU and Optimal) in Linux:
1.Open Terminal in linux
2.Type - gedit LRU.java / gedit Optimal.java
3.Gedit is not avaliable then install by command - sudo apt install gedit
4.In that file type the code mentioned above in this repo
5.Save as the file at Desktop or any other loaction and close it
6.Open terminal and type cd <Directory_of_the_file>
7.Type - javac LRU.java / javac Optimal.java
8.Type - java LRU / java optimal
9.Code will start running,give the inpute for the program