Messing around with snippets of concurrent Java