public class Planet3 { public double radie; public double x; public double y; public double z; public double computeVolume() { return 4* Math.PI*Math.pow(radie, 3) / 3; }//computeVolume public double computeDistance(Planet3 other) { return Math.sqrt(Math.pow(this.x - other.x, 2) + Math.pow(this.y - other.y, 2) + Math.pow(this.z - other.z, 2)); }//computeDistance } //Planet