Register | Login | |||||
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
| |
0 users currently in Programming. |
User | Post |
1337_Ac3 Posts: 83/90 |
Originally posted by neotransotaku You're right, java doesn't have a delete opperator... O_o That's pretty much utter fail, seeing as it's enough resource consuming at the moment. Let's hope someone gets it done now that java is open source... Or is the System.gc() you're talking about getting the work done? |
neotransotaku Posts: 1849/1860 |
I don't think Java as a delete operator. The closest thing you can get to running the garbage collector on demand is to call it via System.gc() |
1337_Ac3 Posts: 82/90 |
I think anything created with the new opperator can be deleted with the Delete opperator. |
DahrkDaiz Posts: 397/403 |
Ok well it's an array of objects, the objects were created with the new operator and the initial array was created with the new operator, does this method still apply? |
1337_Ac3 Posts: 81/90 |
Delete listarray;
That is, if you used the new opperator when you created it. |
DahrkDaiz Posts: 396/403 |
How would I go about freeing up resources manually rather than relying on the garbage collector to do so? Basically I have an array of objects, I want to randomize the list and I plan on doing so by creating another empty list and randomly placing elements in the previous list int he new one. However, I want to remove the old, unused list immediately rather than hoping the garbage collector gets it in a timely manner. Any tips? |