We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

Mrkiller • 5 years ago

Throw a nice memory leak into the environment and the shit has a heart attack lol.
public long addIncremental(long l)
{
Long sum=0L;
sum =sum+l;
return sum;
}
public static void main(String[] args) {
Adder adder = new Adder();
for(long i=1;i<1000;i++)
{
adder.addIncremental(i);
}
}

JBM • 6 years ago

That Maybe illustration looks like it was ripped off Aditya's page with no attribution :(

Matthieu Wipliez • 6 years ago

I brought this up with the authors, they did not think of checking the source when using the illustration; the image has been removed from the playground.