[…] in other programming language if the language doesn’t have similar function. Here is an in_array() implementation for Java. In Java, you could use any List Object such as ArrayList, Vector, HashMap or other. For C […]

The apache commons String util library has a ready made function that does what PHP’s implode does. The StringUtils.join method takes as arguments a String array and a character delimiter and returns a String of values concatenated together, separated by the specified delimiter.