Reset/destroy object instance

aevr54

New Member
I am translating PHP code to JAVA code.PHP code snippet: \[code\]class Population { private $ind; public function __construct() { $this->ind = array(); } function ResetObject() { foreach ($this as $key => $value) { unset($this->$key); } }}$temppop->ResetObject();\[/code\]How to substitute \[code\]ResetObject\[/code\] in JAVA code in order to delete \[code\]temppop\[/code\] from memory?
 
Back
Top