danimaaan

Main Chain of Responsability

Apr 16th, 2021
858
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package br.com.alura.desconto;
  2.  
  3. import java.math.BigDecimal;
  4.  
  5. import br.com.alura.orcamento.Orcamento;
  6.  
  7. public class TesteDesconto {
  8.     public static void main(String[] args) {
  9.         Orcamento primeiro = new Orcamento(new BigDecimal("100"), 8);
  10.         Orcamento segundo = new Orcamento(new BigDecimal("400"), 1);
  11.        
  12.         CalculadoraDescontos calculadora = new CalculadoraDescontos();
  13.         System.out.println("Valor:" + calculadora.calcular(primeiro));
  14.         System.out.println("Valor:" + calculadora.calcular(segundo));
  15.     }
  16. }
  17.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×