Why? Because I can do THIS in C++ >=):
Or, even better...Code:void swap(int& a, int& b) { int temp = a; a = b; b = a; }
And of course, because Java is a scripting language =).Code:template<class t> void swap(t& a, t& b) { t temp = a; a = b; b = a; }
Z.




Reply With Quote