sample of java tutorial