I’m just checking if a value of a double variable is null or not, strangely, an error
raised saying “operator == is undefined for double”?
Code:
public double getGyro_X() {
if (this.gyro_X == null) {
Toast.makeText(this, ""+gyro_XIsNullText, ToastdurationShort).show();
} else {
return this.gyro_X;
}
}
Then its of type
doubleand not of typeDouble.. and double cannot be null