yes it will - I've been doing it all morning.
-----Original Message-----
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 10:00 AM
To: [EMAIL PROTECTED]
Subject: Re: [OT] Java Trivia
That won't compile. length() is a method on String not a property.
David
>Anybody know why the length of a String is a property of the String
>when used as a logical qualifier in a for{} block but a function of the
>String in a conditional if{} statement?
>
>for( int i = 0; i < string.length; i++ ) {}
>
>if( string.length() != 4 ) {}
>
>
>Mark
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]