Result of 'BigDecimal.add()' is ignored
时间: 2024-05-22 12:12:18 浏览: 188
As an AI language model, I do not have access to the context in which this message was displayed. However, it seems that there is a warning or error message related to using the 'add()' method of the 'BigDecimal' class in Java, and not doing anything with its return value.
This warning or error message is usually displayed when a 'BigDecimal' object is created and its 'add()' method is called to perform an arithmetic operation, but the result of this operation is not assigned to any variable or used in any way. This can lead to unintended consequences or errors in the program.
To avoid this warning or error message, it is important to make sure that the result of the 'add()' method is used appropriately in the program. This can be done by assigning it to a variable, printing it to the console, or using it in further calculations.
阅读全文