This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static java.lang.Integer.toHexString; | |
import static java.lang.Math.*; | |
import static java.lang.System.out; | |
import static java.util.Arrays.stream; | |
public class Bitfuck { | |
public static void main(String[] args) { | |
var counts = new int[] { 6, 30, 13 }; | |
var names = new String[] { "firstvalue", "secondvalue", "thirdvalue"}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.concurrent.ExecutionException; | |
import java.util.concurrent.TimeUnit; | |
import java.util.concurrent.TimeoutException; | |
/** | |
* A concurrent lock that blocks until another thread sends a message. | |
* | |
* @author Marko Zajc | |
* | |
* @param <M> |