Java, Design Patterns, Structural Design Pattern, Software Engineering.
static void main(String[] args) { // Create an instance of the new API ExternalWeatherService externalService = new ExternalWeatherService(); // Create an adapter for the new API WeatherService weatherServiceAdapter = new WeatherServiceAdapter(externalService); // Use the adapter to fetch weather