The class containing synchronizedCollection shouldn't be Collections (with the 's') rather than Collection ?The Collection class contains a synchronizedCollection() method that creates thread-safe instances based on collections which are not.
Thank you