Changed return value regex in Java for supporting arrays

Function parser for Java doesn't work if the return value is an Array, like int[].
With this change it should work now :smiley:.