### Question:
SrtmTile { public boolean hasData(double lon, double lat) { return (int)lon == this.lon && (int)lat == this.lat; } SrtmTile(File file);  SrtmTile(InputStream in, int lon, int lat); boolean hasData(double lon, double lat); int getElevation(double lon, double lat); int getLat(); int getLon();  }### Answer:
@Test public void testHasData() throws Exception { SrtmTile srtmTile = new SrtmTile(new File("N49E009.hgt")); assertTrue(srtmTile.hasData(9.1, 49.9)); assertFalse(srtmTile.hasData(8.9, 49.9)); assertFalse(srtmTile.hasData(8.9, 50)); }