I have been writing this line:
Map s_AvailableGameTables = Collection.synchronizedMap(new TreeMap());
And got the following error:
cannot find symbol
symbol: method synchronizedMap(java.util.TreeMap)
location: interface java.util.Collection
Although I wrote
import java.util.*;
import java.util.TreeMap;
import java.util.Collections;
import java.util.Map;
What is the reason for that?
Thanks
It’s a simple typo. It should be
Collections, notCollection.Try,