Some samples of java code