Printouts:
Test 1 (Before fix) Thread 30 - HashCode: 985777155 Thread 31 - HashCode: 1823044275 Thread 32 - HashCode: 985777155
Test 2 (After fix) Thread 32 - HashCode: 1887294649 Thread 31 - HashCode: 1887294649 Thread 30 - HashCode: 1887294649
Test 3 (After fix) Thread 32 - HashCode: 1887294649 Thread 31 - HashCode: 1887294649 Thread 30 - HashCode: 1887294649
All threads are printing the same hash code, meaning threads are synchronized.