I have an array that created 5 objects. Each object has two strings and a int. Lets call the int "number". How can i add up the "number's" of each object into a final number, assume that the numbers change so i cannot simply just put 5 + 3 etc.. For example
Question question = new Question;
String1 = "null";
Sting2 = "null";
number = 0;
for (i=0; i < Question.length; i++)
Many things have to happen first:
Hope this helps (if this is a homework related question you should tag it as such, that would maximize your chance to get help here).