This is simulated Lai yang Algorithm in Java for taking snapshot.
This code will support n number of processors and n number of events
To build the Jar file use the following commands
mvn clean install -DskipTests
command to execute the jar
java -jar Adikarthik-Lai-Yang.jar
Follow the instructions on screen