a simple in java