struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Marco.Mistr...@nokia.com>
Subject RE: Re[2]: [OT] Java Trivia
Date Thu, 12 Jun 2003 14:42:10 GMT
hi
	compiles fine also for me
i m using JDK1.3.1_07

br
	marco

> -----Original Message-----
> From: ext Dirk Markert [mailto:dirk.markert@dr-markert.de]
> Sent: 12 June, 2003 17:35
> To: Struts Users Mailing List
> Subject: Re[2]: [OT] Java Trivia
> 
> 
> Hallo Mark,
> 
> what is the type of your variable string? String??
> 
> Dirk  
> 
> 
> ***************************************************************
> 
> MG> yes it will - I've been doing it all morning.
> 
> MG> -----Original Message-----
> MG> From: David Graham [mailto:dgraham1980@hotmail.com] 
> MG> Sent: Thursday, June 12, 2003 10:00 AM
> MG> To: struts-user@jakarta.apache.org
> MG> Subject: Re: [OT] Java Trivia
> 
> 
> MG> That won't compile.  length() is a method on String not a 
> property.
> 
> MG> 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: struts-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >>
> 
> MG> _________________________________________________________________
> MG> Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
> MG> http://join.msn.com/?page=features/junkmail
> 
> 
> MG> 
> ---------------------------------------------------------------------
> MG> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> MG> For additional commands, e-mail: 
> struts-user-help@jakarta.apache.org
> 
> 
> 
> MG> 
> ---------------------------------------------------------------------
> MG> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> MG> For additional commands, e-mail: 
> struts-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message