Oops! I knew I was forgetting something, the operator new: float[] val = new float[2];.
new
float[] val = new float[2];