Examples in Java