Simple Java CS202 example