Samples of Java Code