Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

[jdom-interest] RE: Need help

Normadiah Mahiddin

2007-03-19

Replies:


Thank you very much Syloke Soong for your reply.
I have tried but once I compile, the error said "cannot find symbol method
clone()".
So how?
I have tried change it a little bit in other ways....
but it still not work...
Thank you very much for anyone help......
I'm really need help......................

Regards,
Normadiah Mahiddin


Syloke Soong wrote:
>
>
>
> This is what you did:
>
> Plan.addContent(
>  (List)(Element) oneLevelDeep.getChildren().clone()
> );
>
> This is what you should have done:
> Plan.addContent(
>  (List)
>   ((Element) oneLevelDeep)
>     .getChildren().clone()
> );
>
>
> This is a common typo mistake I (and programmers I know) make where we
> forget to envelope the object we wish to cast, e.g.:
>
> We mistakenly code
>
> (String)SomeObject.replace(a,b);
>
> When we should have coded
>
> ((String)SomeObject)
>  .replace(a,b);
>
>
> ~ sesal dahulu pendapatan
> ~ sesal kemudian (hrmpphhh!)
> ~ tinggal hanya impian
>
>
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify the sender
> immediately. Please note that any views or opinions presented in this
> email are solely those of the author and do not necessarily represent
> those of the company. Even though this company takes every precaution to
> ensure this email is virus-free, the recipient should check this email and
> any attachments for the presence of viruses. The company accepts no
> liability for any damage caused by any virus transmitted by this email.
> Protedyne Corporation, 1000 Day Hill Rd, Windsor, CT 06095, USA,                                            
> www.protedyne.com
>
> _______________________________________________
> To control your jdom-interest membership:
> http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
>
>

--
Sent from the JDOM - General mailing list archive at Nabble.com.

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.