This may be a completely trivial question but i cannot find any documentation on this... I want to find the sum of two individual array elements for example....
array3[x] = array1[y] + array2[z]
when I do something like this, the answer is y and z combined. how would one find the sum of numbers y & z and not the conjoined string. Sorry if this is exceedingly trivial but i could not find a post asking this myself.
in summary if I have an array eg: a[1,2,5,9] & b[8,6,7,2] & c[]
c[0] = a[0] + b[0]
System.out.println(c[0]);
"9"