A
Arjen
Hi,
I have a public class 'settings' with a public static void
'loadsettings'.
Inside 'loadsettings' I go to public static 'loadpagesettings'. Inside
this function I have a problem.
1. I create an arraylist
2. Load the arraylist with items from the cache
3. If there are no items in the cache, then run some code (put it in
the arraylist) and add the arraylist to the cache
4. // So far it works
5. Now I remove some items from the arraylist
6. // Here comes the problem
7. Now the arraylist in the cache is also changed, but I have added it
in the cache some lines before!
8. I tried to make an copy of the arraylist, i.e. arraylist2 =
arraylist, but this does not work
I need to change that variable after adding it to the cache without
changing the cache.
Can somebody help me with this?
Thanks!
I have a public class 'settings' with a public static void
'loadsettings'.
Inside 'loadsettings' I go to public static 'loadpagesettings'. Inside
this function I have a problem.
1. I create an arraylist
2. Load the arraylist with items from the cache
3. If there are no items in the cache, then run some code (put it in
the arraylist) and add the arraylist to the cache
4. // So far it works
5. Now I remove some items from the arraylist
6. // Here comes the problem
7. Now the arraylist in the cache is also changed, but I have added it
in the cache some lines before!
8. I tried to make an copy of the arraylist, i.e. arraylist2 =
arraylist, but this does not work
I need to change that variable after adding it to the cache without
changing the cache.
Can somebody help me with this?
Thanks!