Learning neural networks using Java