Kennith, 2 problems with your code.
you need to choose which method is going to instantiate your array of operands.
You have 2 options:
- instantiate the array before calling getOperand(...) in which case you need to pass the array as an argument of getOperand
- instantiate in the method getOperand(...) in which case you need to return the array at the end of getOperand.
At the moment, you are doing both which is confusing.
Secondly, you declare getOperand with a double[] as argument but when you call the method you don't pass the array as argument.