I apologize for my answer. I am wrong.
I didnt see the example clearly and missed the return

Sorry chris

Shiraz

-----Original Message-----
From: Shiraz Wasim Zaidi <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, August 12, 1999 9:13 PM
Subject: Re: will this code work?


>Hi!,
>
>No, It wont work....
>
>The result will be null . Method parameters variables are created
>when a method is invoked and its value is initialized with the method
>argument.
>i.e copy of actual argument is passed not the actual argument.
>
>Shiraz
>
>-----Original Message-----
>From: Chris Pratt <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>Date: Thursday, August 12, 1999 7:32 PM
>Subject: Re: will this code work?
>
>
>>Yes it will.  But that is an awefully convoluted way of doing
>>out.println("my name");  At this point I would suggest you read through
the
>>Java Tutorial on Sun's site, it's free and it will teach you these
>>rudimentary things.
>>    (*Chris*)
>>
>>----- Original Message -----
>>From: Duke Martin <[EMAIL PROTECTED]>
>>To: <[EMAIL PROTECTED]>
>>Sent: Thursday, August 12, 1999 4:57 PM
>>Subject: will this code work?
>>
>>
>>> String temp = null;
>>> temp = process_me(temp);
>>>
>>> out.println(temp);
>>>
>>> public String process_me(String temp)
>>> {
>>> temp = "my name";
>>> return temp;
>>> }
>>>
>>> I would like to this the output of this servlet to print "my name" to
the
>>> screen.  Will this work?
>>>
>>> thanks
>>>
>>>
>>__________________________________________________________________________
_
>>> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
>>body
>>> of the message "signoff SERVLET-INTEREST".
>>>
>>> Archives: http://archives.java.sun.com/archives/servlet-interest.html
>>> Resources: http://java.sun.com/products/servlet/external-resources.html
>>> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>>>
>>
>>__________________________________________________________________________
_
>>To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
>>of the message "signoff SERVLET-INTEREST".
>>
>>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>>Resources: http://java.sun.com/products/servlet/external-resources.html
>>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>>
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to