View Single Post
  #3 (permalink)  
Old 12-10-2007, 07:30 AM
revathi17 revathi17 is offline
Member
 
Join Date: Aug 2007
Posts: 22
revathi17 is on a distinguished road
From what you have posted, you have used length() as a method like grades.length()
but length is an attribute of the array, it is not a method
you have to call it like this: grades.length

Code:
for (int i=0; i<grades.length; i++) { }
Hope this helps..

-R
Reply With Quote