Neural networks trained and saved with easyNeurons can be easily used in your Java programs. You just need to import the Neuroph Library neuroph.jar which is part of this distribution and do the following:
NeuralNetwork myNeuralNetwork = NeuralNetwork.load(“MyPerceptron.nnet”); // load the saved network
Vector <Double> networkInput = new Vector<Double> (); // create some test input for network
networkInput.add(new Double(1));
networkInput.add(new Double(1));
myNeuralNetwork.setInput(networkInput); // set network input
myNeuralNetwork.calculate(); // calculate network
Vector <Double> networkOutput = myNeuralNetwork.getOutput(); // get network output