My artificial neural network written in PHP prompted a few requests for a Java implementation. Well, I could only oblige.
Porting the code from PHP was easy; I only had to find and use the Java equivalent of the functions in my original implementation. However, since object serialisation in Java is more complex than in PHP, saving and loading functions were left out.
To understand the concepts and the alorithm, the reader is encouraged to refer to the above-mentioned article. The source code for the ANN class and the example usage can be downloaded.