guava - Importing ArrayListMultimap into IntelliJ - Java -


i imported guava multimap library intellij when try use multimap interface

multimap<string, blockingqueue<string>> addblock = new arraylistmultimap.create(); 

the create not activate. coloured in red.

this import statement used

import com.google.common.collect.arraylistmultimap; import com.google.common.collect.multimap; 

it's static factory method, not constructor. remove new keyword:

multimap<string, blockingqueue<string>> addblock = arraylistmultimap.create(); 

Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -