Java: How to calculate the sum of an integer?

Oui

New member
In my program I have this line of code that prints HCIcw... an int with values obtained from a .txt document.



Code:
System.out.println(HCIcw);
Results in this on a RUN:
Code:
53
53
53
53
50
50
90
71
How do I add the values of HCIcw together so that I can print the sum of those numbers instead of them all individually? I'm new to this :)
 
Back
Top