Skip to content

Instantly share code, notes, and snippets.

@Harishraj16
Created March 18, 2024 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Harishraj16/01bc133f91112a0f9653289af318e740 to your computer and use it in GitHub Desktop.
Save Harishraj16/01bc133f91112a0f9653289af318e740 to your computer and use it in GitHub Desktop.
public void printMenu(List<? extends Dish> menu) {
for (Dish dish : menu) {
System.out.println(dish.getName() + " - " + dish.getDescription());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment