I think you are wrong in this line:
array[i] = Integer.parseInt(k);

"*,/,+,-" may could not be parsered into an int.