Im new in java and I would like how to return and show more than one value.

this is my code.

**MainActivity.java**

```
private void updatePressureValue(BluetoothGattCharacteristic characteristic) {

    if (mPressureCals == null) 
        return;
     double pressure = SensorTagData.extractBarometer(characteristic, mPressureCals);
     double temp = SensorTagData.extractBarTemperature(characteristic, mPressureCals);

    mTemperature.setText(String.format("%.1f\u00B0C", temp));
    mPressure.setText(String.format("%.2f", pressure));
}

private void updateAccelerometerValue(BluetoothGattCharacteristic characteristic ){

    double accelerometerx = SensorTagData.extractAccelerometer(characteristic, mAccelerometerx);
    double accelerometery = SensorTagData.extractAccelerometer(characteristic, mAccelerometery);
    double accelerometerz = SensorTagData.extractAccelerometer(characteristic, mAccelerometerz);

    mAccelerometerx.setText(String.format("%.4f", accelerometerx));
    mAccelerometery.setText(String.format("%.4f", accelerometery));
    mAccelerometerz.setText(String.format("%.4f", accelerometerz));
}
}

```

**SensorData.java**

```
public class SensorData {

public static double extractHumAmbientTemperature(BluetoothGattCharacteristic c) {
    int rawT = shortSignedAtOffset(c, 0);

    return -46.85 + 175.72/65536 *(double)rawT;
}

public static double extractAccelerometer(BluetoothGattCharacteristic c) {

    Integer x = c.getIntValue(FORMAT_SINT8, 0);
    Integer y = c.getIntValue(FORMAT_SINT8, 1);
    Integer z = c.getIntValue(FORMAT_SINT8, 2) * -1;

    double scaledX = x / 64.0;
    double scaledY = y / 64.0;
    double scaledZ = z / 64.0;

    return scaledX; scaledY; scaledZ ;
}

```

I took the code from the internet and only the value of a sensor is displayed, I want to add the accelerometer but nose how. Can someone help me?

Thanks.