Open main menu

CDOT Wiki β

Changes

Teams Winter 2011/team2/lab3

275 bytes added, 12:16, 21 March 2011
no edit summary
[[File:Classl3T2.png]]
*Copy and paste the following to their respective file.
'''Weather.java'''
<source lang=java>
package ecl.team2.lab3.weathermodel;
public String getCity() {
return city;
}
public String toString()
{
return city + " " + tempInCelcius + " " + rainInMM + " " + snowInMM + " "
+ windspeedInKM + " " + windDirection;
}
}
</source>
'''SimpleWeatherSystem.java'''
<source lang=java>
package ecl.team2.lab3.weathermodel;
}
}
public Weather getWeather(String city) throws Exception {
// TODO Auto-generated method stub
}
return found;
}
public ArrayList<Weather> getAllWeather()
{
return weathers;
}
}
1
edit