number = Integer.parseInt(o.toString() );
would place the number 45, represented as an int, into the memory corresponding to the variable number. This presumes a prior declaration:
int number;
sum = sum + number; //add number to sum
- reads the value currently in the memory locations corresponding to number and sum;
- places the value of sum + number into the memory locations corresponding to the variable sum.