String rgobject0 = (String)rgobject[0];
Ed.

Larry Linville wrote:

> Hey Guys, Sorry to ask such a
> basic java, casting question,
> but after browsing the archives
> and javasofts' forums all morning
> I've not been able to find anything
> that makes this specific casting
> clear enough to me.
>
> The following code snipit I know is
> incorrect, but I'm basically trying to
> find out how to convert my rgobject[0]
> and rgobject[1] from objects to strings.
>
> What method /constructor am I missing, or
> does anyone know of an online source that's
> helpful in exampling castings - namely
> from java.lang.Object to java.lang.String?
>
>         String [] rgstring = new String [] {
>                 "rgobject[0]",
>                 "rgobject[1]",
>         };
>
>         String rgobject0 = rgobject[0];
>           String rgobject1 = rgobject[1];
>
> Thanks,
> - Larry
>
> ___________________________________________________________________________
> 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