Skip to content

Instantly share code, notes, and snippets.

View boileryao's full-sized avatar
👻
O-r-de-r, order !

boileryao boileryao

👻
O-r-de-r, order !
View GitHub Profile
@boileryao
boileryao / SemaphorePersonThread.java
Created November 26, 2019 06:20
Semaphore Sample
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Semaphore;
public class SemaphorePersonThread extends Thread {
Semaphore position;
private int id;
public SemaphorePersonThread(int i, Semaphore s) {
this.id = i;
@boileryao
boileryao / Strings.java
Created November 29, 2018 06:33
Java Encoding Test Code
package strings;
import java.nio.charset.Charset;
import java.util.Arrays;
/**
* Created by boileryao on 11/29/2018.
* Class: Strings
*/