Java implementation of a neural network for XOR training set.