Comment Re:Does it make Minecraft run faster? (Score 1) 302
Can you sort an array like so in Java
public void swap(int a, int b)
{
int tmp=b;
b=a;
a=tmp;
}
swap(array[i],array[j]);
Answer: no you can not.
references in java are gimped pointers and have nothing to do with passing parameters.
What gets passed is a value, if it is a primitive, or an address if it is an object.
http://javadude.com/articles/p...
It is amazing how ignorant Java devs are.