A short example Java demonstration for beginners