I\'m coding a radio in java and am using a thread to of course play the stream in. I have a while loop in the run method of the thread which checks if a variable called shou
You can make use of AtomicBoolean as an alternative.