Skip to content

Instantly share code, notes, and snippets.

@Mishco
Created December 9, 2022 12:41
Show Gist options
  • Select an option

  • Save Mishco/41311a70b7e46ca28552a5d98d96f05d to your computer and use it in GitHub Desktop.

Select an option

Save Mishco/41311a70b7e46ca28552a5d98d96f05d to your computer and use it in GitHub Desktop.
public class WeatherTracker {
public String currentConditions;
public void setCurrentConditions(String weatherDescription) {
this.currentConditions = weatherDescription;
}
public void notify(Notifier notifier) {
notifier.alertWeatherConditions(currentConditions);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment