Adjusted some java programs

Adjusted FromXTrain.java, DehnTwist.java, IntMatrix.java