I found this implementation: http://www.philbrierley.com/code.html -> go to java section. Twicked it to work with variable num of inputs and input files. Added different activaion functions. But still don't know whether ot not it is working finr. Compile and run Perceptron.java to see what it does.