A basic Java program for beginers