Skip to content

Instantly share code, notes, and snippets.

@surendra554
Created October 19, 2022 11:29
Show Gist options
  • Save surendra554/9b928a9cb5f5aad93dd719a09efc5003 to your computer and use it in GitHub Desktop.
Save surendra554/9b928a9cb5f5aad93dd719a09efc5003 to your computer and use it in GitHub Desktop.
// Show an error message as a toast
Toast.makeText(this, "You cannot have less than 1 coffee", Toast.LENGTH_SHORT).show();
// Exit this method early because there's nothing left to do
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment