import java.math.BigDecimal; public class NegationExample { public static void main(String[] args) { BigDecimal num1 = new BigDecimal("10.25"); BigDecimal num2 = new BigDecimal("-5.50"); System.out.println("Original value of num1: " + num1); // Output: Original value of num1: 10.25 BigDecimal negNum1 = num1.negate(); System.out.println("Negation of num1: " + negNum1); // Output: Negation of num1: -10.25 System.out.println("Original value of num2: " + num2); // Output: Original value of num2: -5.50 BigDecimal negNum2 = num2.negate(); System.out.println("Negation of num2: " + negNum2); // Output: Negation of num2: 5.50 } }The 'BigDecimal' class is part of the 'java.math' package library provided by Java.