An array is an object, and what you are shown is not a memory address, but simply a name assigned to the object. What you have to do is iterate over the arrangement to show it:
float[] temperaturaMaxima = { 22.488L, 32.433L, 27.32L };
public float[] getMaxima(){
return temparaturaMaxima;
}
public String arregloToJSONString(float[] arreglo){
StringBuilder sb = new StringBuilder();
sb.append("[ ");
for (int i = 0; i<arreglo.length; i++ ){
sb.append(String.valueOf(arreglo[i]));
if (i<arreglo.length-1) sb.append(", ");
}
sb.append(" ]");
return sb.toString();
}
The code gives you a representation of the arrangement in this case in JSON format, but in the background you choose how to present your data.
System.out.println(arregloToJSONString(getMaxima()));
// => "[ 22.488, 32.433, 27.32 ]