Reversing Arrays...

Recently, I've been working quite a lot in Java. Most modern languages are Turing Complete, so it is rarely about what you can do, but rather how you can do it. Every now and again, I come across painfully annoying Java constructs which make the code that much harder to read and write (for no apparent reason). But today, I had my mind blown... reversing arrays. In C#:

Meanwhile in Java, there is no standard way of doing it. According to stackoverflow, one can either implement something oneself, your add Apache's CommonUtil.

Leave Comment

Your email address will not be published.

Please type the characters of this captcha image in the input box

Please type the characters of this captcha image in the input box