Changed return value regex in Java for supporting arrays

For example:
int[] or float[][]