Fooling around with java programs