Here it goes.
(*Chris*)
String setString (String starter) {
// Other Stuff
return starter;
}
void useString () {
String starter = null;
// Other Stuff
starter = setString(starter);
}
----- Original Message -----
From: Duke Martin <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 12, 1999 2:12 PM
Subject: another servlet-java question
> hi,
>
> what if i have:
>
> String s = null;
>
> I want to pass the String s to a method:
>
> method1(s);
> public synchronized String method1(String s)
> {
> .
> .
> return s;
> }
> Inside method1 I will assign String s a value. How do I return this
value?
> The code snip above doesn't work. any ideas?
>
>
___________________________________________________________________________
> 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