Im having problems when trying to initialize the variable:
Map<Sentence, Float>[] vectorValueSentences; // this is ok
/* but this is not */ vectorValueSentences = new HashMap<Sentence, Float>()[100];
I search on what to do but i didnt find any. I read that the object to be initialize has to be static but i dont find a way to declare the Map static.
Thank you for your help!
HashMap<Sentence, Float>[] vectorValueSentences = new HashMap[100];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.