Java Thread Syncronized Locker

synchronized void incrementSync() {
    count = count + 1;
}
Agreeable Albatross