String is a final class so you can't subclass it.

David

and here I thought it was a trick question, where you had subclassed String as string class and added a public member length. ......

-----Original Message-----
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 11:17 AM
To: 'Struts Users Mailing List'
Subject: RE: [OT] Java Trivia


okay, okay, let it rest. I feel st00pid enough already!


-----Original Message-----
From: Mike Whittaker [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 10:51 AM
To: Struts Users Mailing List
Subject: RE: [OT] Java Trivia



> if( test.equals( " " )) { return false; }

for( int i = 0; i < months.length; i++ ) {

if( test.equals( months[ i ] )){

I see no 'string.length'

If you are refering to the months.length, then this is a language
convenience for determining the length of an array, which 'months' surely is
since you have 'months[ i ]'


In the same way ""+27 is a language convenience


--------------------------------------------------------------------- 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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to