Small Examples with java