Well, Here is the Code for the program to Implement 2PC Protocol using Java.

I am able to compile the program, But when i try to execute (using -Xlint) i am unable to get the output, as some...