For a return value of the function int array:
'' '
public int [] getRandomNumArray (int NUM) {
int [] = localArray new new int [NUM];
int Start = (int) ((10 - NUM) * the Math. Random ());
for (int i = 0; i < localArray.length; i++) {
localArray[i] = start + i;
}
return localArray;
}
'''
'' '
System.out.println (mHelper.getRandomNumArray (. 3));
' ''
returns the following results:
'[27c170f0 the I @'
this should be the address of the array of bars.
- If I want to print out this array in which each element, how should do?
- This address can be returned directly to use it?