Instead of doing it one by one, you can pass in any amount of integers


public class AddNum
{
public static void main(String arg[])
{
int total=0;
for(int...