The code looks straightforward except that it is not working the way i expected it to.
Your assistance will be gladly appreciated.
Thanks.
=========================
package sumaverage;
public class SumAverage {
public static void main(String args[]) {
int sum = 0;
String args.length[] = new String[10];
int i;
float Average;
for(i= 0; i<=args.length; i++){
sum = sum+ args.length;
}
System.out.println("The sum is:" +sum);
Average = sum/args.length;
System.out.println("The Average is:" +Average);
}
}