Skip to content

Instantly share code, notes, and snippets.

@ramon-src
Created November 21, 2019 00:03
Show Gist options
  • Save ramon-src/ae6e00496427bf414daf447574b2db95 to your computer and use it in GitHub Desktop.
Save ramon-src/ae6e00496427bf414daf447574b2db95 to your computer and use it in GitHub Desktop.
class Pagamento {
public void executar(String tipoPagamento) {
if (tipoPagamento == "Cartão de Débito"){
print("debita sem taxa");
}
if (tipoPagamento == "Cartão de Crédito"){
print("debita com taxa");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment