I need to know whats wrong with the following lines of code and why. I had this questionn on a quiz today, couldn't answer
int[] hws
int mhw = hws.length
int sum = 0
for(int i = 0; i<hws.lengh; i++)
sum = sum + hws[i]
int avg= sum/mhw
thanks
I am a java n00b![]()


Reply With Quote


Bookmarks