A few samples of code with Java