RE: [OT] Java Trivia

2003-06-13 Thread Brian Lee
Take it easy Hanover. BAL From: "Mark Galbreath" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]> Subject: RE: [OT] Java Triv

RE: [OT] Java Trivia

2003-06-13 Thread Mark Galbreath
You're hilarious. not. -Original Message- From: Daniel Joshua [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 2:04 AM To: 'Struts Users Mailing List' Subject: RE: [OT] Java Trivia if (FRIDAY[13].length != FRIDAY.size){ laugh(); } Regards, Daniel -O

RE: [OT] Java Trivia

2003-06-12 Thread Daniel Joshua
if (FRIDAY[13].length != FRIDAY.size){ laugh(); } Regards, Daniel -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Friday, 13 June, 2003 11:24 AM To: Struts Users Mailing List Subject: RE: [OT] Java Trivia Well it is [FRIDAY] the 13th... -Original Message

RE: [OT] Java Trivia

2003-06-12 Thread Andrew Hill
Well it is [FRIDAY] the 13th... -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Friday, 13 June 2003 01:54 To: 'Struts Users Mailing List' Subject: RE: [OT] Java Trivia And thanks for making it worse. -Original Message- From: Steven Sajous [mai

RE: [OT] Java Trivia

2003-06-12 Thread Mark Galbreath
And thanks for making it worse. -Original Message- From: Steven Sajous [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 1:39 PM To: Struts Users Mailing List Subject: RE: [OT] Java Trivia this was the worse thread I have seen here for sure. -Original Message- From: Mike

RE: [OT] Java Trivia

2003-06-12 Thread Steven Sajous
this was the worse thread I have seen here for sure. -Original Message- From: Mike Jasnowski [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 12:04 PM To: Struts Users Mailing List Subject: RE: [OT] Java Trivia Or "string" could have been some other class than Strin

RE: [OT] Java Trivia

2003-06-12 Thread Mike Jasnowski
Or "string" could have been some other class than String, I don't recall seeing the declaration shown in the original post -Original Message- From: Kandi Potter [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 11:26 AM To: Struts Users Mailing List Subject: RE: [

RE: [OT] Java Trivia

2003-06-12 Thread Kandi Potter
thanks.of course I haven't tried to myself. -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 11:32 AM To: [EMAIL PROTECTED] Subject: RE: [OT] Java Trivia String is a final class so you can't subclass it. David >and here

RE: [OT] Java Trivia

2003-06-12 Thread David Graham
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

2003-06-12 Thread Kandi Potter
t: 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( " &

RE: [OT] Java Trivia

2003-06-12 Thread Mark Galbreath
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; } f

RE: [OT] Java Trivia

2003-06-12 Thread Mike Whittaker
> 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

RE: [OT] Java Trivia

2003-06-12 Thread Jarnot Voytek Contr AU HQ/SC
months is an array, not a String > -Original Message- > From: Mark Galbreath [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 12, 2003 9:32 AM > To: 'Struts Users Mailing List' > Subject: RE: [OT] Java Trivia > > > Here's my code - it compiles j

RE: [OT] Java Trivia

2003-06-12 Thread David Graham
Jarnot Voytek Contr AU HQ/SC [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 10:02 AM To: 'Struts Users Mailing List' Subject: RE: [OT] Java Trivia for( int i = 0; i < string.length; i++ ) {} doesn't compile for me... -- Voytek Jarnot Quidquid latine dictum sit, altu

RE: Re[2]: [OT] Java Trivia

2003-06-12 Thread Marco.Mistroni
hi compiles fine also for me i m using JDK1.3.1_07 br marco > -Original Message- > From: ext Dirk Markert [mailto:[EMAIL PROTECTED] > Sent: 12 June, 2003 17:35 > To: Struts Users Mailing List > Subject: Re[2]: [OT] Java Trivia > > > Hallo Mark,

Re: [OT] Java Trivia

2003-06-12 Thread Jeff Kyser
SC [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 10:02 AM To: 'Struts Users Mailing List' Subject: RE: [OT] Java Trivia for( int i = 0; i < string.length; i++ ) {} doesn't compile for me... -- Voytek Jarnot Quidquid latine dictum sit, altum viditur. -Original Messag

RE: [OT] Java Trivia

2003-06-12 Thread Kevin A. Palfreyman
month is String[] test is String arrays have .length String object has .length() Kev > -Original Message- > From: Mark Galbreath [mailto:[EMAIL PROTECTED] > Sent: 12 June 2003 15:32 > To: 'Struts Users Mailing List' > Subject: RE: [OT] Java Trivia > >

Re[2]: [OT] Java Trivia

2003-06-12 Thread Dirk Markert
Thursday, June 12, 2003 10:00 AM MG> To: [EMAIL PROTECTED] 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 log

RE: [OT] Java Trivia

2003-06-12 Thread Mark Galbreath
= 0; if( !Character.isDigit( token.nextToken().charAt( i ))) { return false; } i++; } } -Original Message- From: Jarnot Voytek Contr AU HQ/SC [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 10:02 AM To: 'Struts Users Mailing List' Subject: RE: [OT] Java T

RE: [OT] Java Trivia

2003-06-12 Thread Josh Rayls
Doesn't compile for me either. -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 10:28 AM To: 'Struts Users Mailing List' Subject: RE: [OT] Java Trivia yes it will - I've been doing it all morning. -Original Mess

RE: [OT] Java Trivia

2003-06-12 Thread Mark Galbreath
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

RE: [OT] Java Trivia

2003-06-12 Thread Mike Whittaker
>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 for( int i = 0; i < st

RE: [OT] Java Trivia

2003-06-12 Thread Witbeck, Shane
umm... String.length() not String.length ? -Original Message- From: Firat TIRYAKI [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 10:07 AM To: Struts Users Mailing List Subject: Re: [OT] Java Trivia well, what's the message you are getting? F. - Original Me

Re: [OT] Java Trivia

2003-06-12 Thread Firat TIRYAKI
well, what's the message you are getting? F. - Original Message - From: "Jarnot Voytek Contr AU HQ/SC" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Thursday, June 12, 2003 5:01 PM Subject: RE: [OT] Java

RE: [OT] Java Trivia

2003-06-12 Thread Jarnot Voytek Contr AU HQ/SC
s Mailing List' > Subject: [OT] Java Trivia > > > 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 =

Re: [OT] Java Trivia

2003-06-12 Thread David Graham
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++ )

[OT] Java Trivia

2003-06-12 Thread Mark Galbreath
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 -

RE: Saturday (EST) Java Trivia

2002-06-24 Thread Galbreath, Mark
Craig wins the Saturday trivia contest. How would you like your sheepdog wrapped? :-) -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 22, 2002 3:01 PM To: Struts Users Mailing List Subject: Re: Saturday (EST) Java Trivia On Sat, 22 Jun

RE: Saturday (EST) Java Trivia

2002-06-24 Thread Galbreath, Mark
Funny, I got a DullPointerException -Original Message- From: slickdev [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 22, 2002 2:36 PM To: Struts Users Mailing List Subject: Re: Saturday (EST) Java Trivia A NullPointerException is what you get when you ask that question

Re: Saturday (EST) Java Trivia

2002-06-22 Thread Max Cooper
- Original Message - From: "Galbreath, Mark" <[EMAIL PROTECTED]> To: "Struts (E-mail)" <[EMAIL PROTECTED]> Sent: Saturday, June 22, 2002 6:33 AM Subject: Saturday (EST) Java Trivia > 1. What is the difference between a pointer and a reference? No

Re: Saturday (EST) Java Trivia

2002-06-22 Thread Craig R. McClanahan
On Sat, 22 Jun 2002, Galbreath, Mark wrote: > Date: Sat, 22 Jun 2002 09:33:52 -0400 > From: "Galbreath, Mark" <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: "Struts (E-mail)" <[EMAIL PROTECTED]> > Su

Re: Saturday (EST) Java Trivia

2002-06-22 Thread slickdev
A NullPointerException is what you get when you ask that question. > -Original Message- > From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] > Sent: Saturday, June 22, 2002 9:34 AM > To: Struts (E-mail) > Subject: Saturday (EST) Java Trivia > > > 1. What is

RE: Saturday (EST) Java Trivia

2002-06-22 Thread Chris Deever
I guess NullReferenceException didn't sound appealing to James Gosling. -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 22, 2002 9:34 AM To: Struts (E-mail) Subject: Saturday (EST) Java Trivia 1. What is the difference between a pointer

RE: Saturday (EST) Java Trivia

2002-06-22 Thread Andrew Hill
the rule? ;-) -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 22, 2002 21:34 To: Struts (E-mail) Subject: Saturday (EST) Java Trivia 1. What is the difference between a pointer and a reference? 2. If Java does not have pointers, what is a

Saturday (EST) Java Trivia

2002-06-22 Thread Galbreath, Mark
1. What is the difference between a pointer and a reference? 2. If Java does not have pointers, what is a NullPointerException?

Re: Java Trivia

2002-02-01 Thread Bernard Choi
ot; <[EMAIL PROTECTED]> Sent: Friday, February 01, 2002 10:02 PM Subject: RE: Java Trivia > > Java doesn't have pointers! Just mudying the waters, or was it serious? If so sorry. > > Think of it as chucking water over someone, as opposed to passing them a cup of water. T

RE: Java Trivia

2002-02-01 Thread Bill Page
pointer if you like), you can change the internal stuff, but never the instance of the object. bp -Original Message- From: Olivier Dinocourt [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 8:53 AM To: Struts Users Mailing List Subject: Re: Java Trivia yes and no. the point is not

Re: Java Trivia

2002-02-01 Thread Olivier Dinocourt
ivier (hoping he has not just written bullshit... :) - Original Message - From: "Galbreath, Mark" <[EMAIL PROTECTED]> To: "'Mikkel Bruun'" <[EMAIL PROTECTED]>; "Struts (E-mail)" <[EMAIL PROTECTED]> Sent: Friday, February 01, 2002 2:48

RE: Java Trivia

2002-02-01 Thread Jonathan Gibbons
;Struts Users Mailing List" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> cc: Subject: RE: Java Trivia Like I said...it's Friday ;-) -Original Message- From: Jim Bell [mailto:[EMAIL PROTECTED]] Sent: Friday,

RE: Java Trivia

2002-02-01 Thread Galbreath, Mark
Like I said...it's Friday ;-) -Original Message- From: Jim Bell [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 9:14 AM To: Struts Users Mailing List Subject: RE: Java Trivia Perhaps this discussion is better suited for another mailing list, but in an attempt to

RE: Java Trivia

2002-02-01 Thread Jim Bell
bbons [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 9:02 AM To: Struts Users Mailing List Subject: RE: Java Trivia Java doesn't have pointers! Just mudying the waters, or was it serious? If so sorry. Think of it as chucking water over someone, as opposed to passing them a cup

RE: Java Trivia

2002-02-01 Thread Charlesworth, Chico
;Mikkel Bruun'" <[EMAIL PROTECTED]>; "Struts (E-mail)" <[EMAIL PROTECTED]> cc: Subject: RE: Java Trivia Obviously, the first is passed by value, but the second? We know p will reference the same object it referenced before the method invocation - the memory location it po

RE: Java Trivia

2002-02-01 Thread Jonathan Gibbons
el Bruun'" <[EMAIL PROTECTED]>; "Struts (E-mail)" <[EMAIL PROTECTED]> cc: Subject: RE: Java Trivia Obviously, the first is passed by value, but the second? We know p will reference the same object it referenced before the method invocation - the memory location it points

RE: Java Trivia

2002-02-01 Thread Galbreath, Mark
Obviously, the first is passed by value, but the second? We know p will reference the same object it referenced before the method invocation - the memory location it points to is the same. Because p will always point to the same memory location, is it not also passed by value? ;-) -Origina

RE: Java Trivia

2002-02-01 Thread Mikkel Bruun
Ehh... primitives vs ojbects??? by value or by ref... whats the point?? -Original Message- From: Galbreath, Mark To: Struts (E-mail); J2ee (E-mail) Sent: 01-02-2002 14:40 Subject: Java Trivia What's the difference between int i = 3; someMethod( i); and Point p = new Point(

Java Trivia

2002-02-01 Thread Galbreath, Mark
What's the difference between int i = 3; someMethod( i); and Point p = new Point( 3, 3); someOtherMethod( p); ? Mark -- To unsubscribe, e-mail: For additional commands, e-mail: