Brian Rupasinghe wrote:Hi, here is the code i used. But still got the same problem.
Right, but how did you set up '
atemp'?
If it's as you showed us above and you simply added that loop,
atemp will contain
two copies of
als: one shallow one (which you already know doesn't work) and another deep one AFTER the shallow one.
Since String is immutable, I don't see anything basically wrong with your loop; it just needs to be executed on an
empty List.
HIH
Winston