[求助]各位帮小弟看看..这个简单的累计加问题[em03]
public class ddd{
public static void main(String []arg )
{
int i;
int sum;
for(i=0;i<c.length;i++)
{
System.out.print("第" + (i+1) + "个是:" + arg[i]+"\n");
sum+=(int)arg[i];
}
System.out.print("总分是:" + sum);
}
}