Hi Anthony, You are correct. The method length is not defined for arrays. It is defined for String however: String s = "Yesterday"; int i = s.length(); // Equals 9. You want the field length that is defined for arrays: String[] as = {"Yesterday", "Today", "Tommorrow"}; int i = as.length; // Equals 3. Regards, Manfred.

Peter Simard

Ranch Hand

Posts: 54

posted 15 years ago

length is a property of Arrays, so you could use spec_char.length

PAS<br />peter@panvox.net<br />2b || !2b

Colin Kenworthy

Ranch Hand

Posts: 88

posted 15 years ago

Yes, length is not a method but a property of arrays so you just need to drop the '()'.