Neural Network java code