Some simple porgrams with java