+ 1

JAVA libraries

isn't AtomicBoolean function implemented in java libraries in soloLearn? I was coding: https://code.sololearn.com/c5GlFghF9nFt/#java when I realised that I couldn't find java.util.concurrence.atomic any help?

10th Mar 2018, 11:08 AM
Pau Bartolí
Pau Bartolí - avatar
2 Réponses
+ 1
Just import the AtomicBoolean class itself. Replace line 2 with: import java.util.concurrent.atomic.AtomicBoolean;
10th Mar 2018, 11:52 AM
apex137
apex137 - avatar
0
thanks mate!!
10th Mar 2018, 12:17 PM
Pau Bartolí
Pau Bartolí - avatar