public class SimpleLocation
{
	private double longitude;
	private double latitude;

	// Default constructor
	public SimpleLocation(double lat, double lon){
	    this.longitude = -122.321724 ; 
	    this.latitude = 47.697263 ;
	}
	// Constructor
	public SimpleLocation(double lat, double lon){
	    this.longitude = lon; 
	    this.latitude = lat;
	}

	// getter
	public double getLatitude()
	{
		return this.latitude;
	}

	// setter
	public void setLatitude(double lat)
	{
		
	}

	public double distance(SimpleLocation other)
	{
		return (this.latitude , this.longitude, other.latitude, other.longitude)
	}
}
@@ -468,16 +468,138 @@
 t)%0A%09%7B%0A%09%09
+if(lat %3C -180 %7C%7C lat %3E 180)%7B%0A%09%09%09System.out.println(%22Illegal value for latitude%22);%0A%09%09%7D%0A%09%09else %7B%0A%09%09%09this.latitude = lat;%0A%09%09%7D
 %0A%09%7D%0A%0A%09pu

check latitude validity