Switching javascript neural network to java

I find js hard to understand since I use java. This code is suppose to get 3 inputs the number of inputs, the number of hidden and the number of outputs then assign the inputs, which I think I’ve done & then place them in the feedforward function which comes to an error.