I want to code/design an algorithm in java in which i started with an input of
variable int i=0;
while (i==0){i==1;}
create or start again with var i in new memory location set value again to 1;
loop to assign value 1 to var and jump to next memory location.
until heap memory full
then Calculate total variables created and exist in memory , by using loop
System.out.println(total var created);
Can i done this in Java?
i have done with "how much time to create fixed variable count in java"