/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
import java.math.BigDecimal;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
public static void main
(String[] args
) {
.
multiply(new BigDecimal(segundoTermo.
doubleValue())).
add((div
) .
multiply(new BigDecimal(terceiroTermo.
doubleValue())) .
multiply(new BigDecimal(quartoTermo.
doubleValue()))));
System.
out.
println("Valor total de Bxt em BigDecimal: " + teste
);
(1d/2d) * primeiroTermo.doubleValue() * segundoTermo.doubleValue() +
(1d/2d) * terceiroTermo.doubleValue() * quartoTermo.doubleValue();
System.
out.
println("Valor de BXT: em Double " + Bxt
); }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLm1hdGguQmlnRGVjaW1hbDsKCi8qIE5hbWUgb2YgdGhlIGNsYXNzIGhhcyB0byBiZSAiTWFpbiIgb25seSBpZiB0aGUgY2xhc3MgaXMgcHVibGljLiAqLwpjbGFzcyBJZGVvbmUKewogICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgewogICAgICAgIEludGVnZXIgcHJpbWVpcm9UZXJtbyA9IDU7CiAgICAgICAgSW50ZWdlciBzZWd1bmRvVGVybW8gPSA2OwogICAgICAgIEludGVnZXIgdGVyY2Vpcm9UZXJtbyA9IDc7CiAgICAgICAgSW50ZWdlciBxdWFydG9UZXJtbyA9IDg7CgogICAgICAgIEJpZ0RlY2ltYWwgZGl2ID0gbmV3IEJpZ0RlY2ltYWwoMWQvMmQpOwoJCUJpZ0RlY2ltYWwgdGVzdGUgPSAoZGl2Lm11bHRpcGx5KG5ldyBCaWdEZWNpbWFsKHByaW1laXJvVGVybW8uZG91YmxlVmFsdWUoKSkpCiAgICAgICAgICAgICAgICAgICAg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