some basic practice of java