I was working on a chess game application and I decided to make the main game loop wait until the user selects a field. To do this, I made a java.util.concurrent.locks
java.util.concurrent.locks