Modified JAVA basics DEMO