hi, 

i think i already asked this question before but i just cant find it. sorry if 
double post :)

i got problem trying to split constructor and its initial value without making 
new constructor/method. so im trying to do the initialization inside a loop but 
construct the object outside the loop. so in java, it looks like this:

Class obj;

for( ; ; ;) {
  obj = new Class(param1, param2);
}

im not sure about putting the memory alloc inside the loop since it will be 
costly to loop it.

in my program, i have the constructor Class(param1, param2), and i only able to 
use that constructor. any idea how to do that without making additional method?


thanks in advance :)



      

[Non-text portions of this message have been removed]

Reply via email to