Hello,
I would like to compare two values that I recover in a java class. So I did a System.out.println, I've recovered well, now I'd like to compare:
Here's the code:
I'd like to compare these two values 1 and 2 as follows: value1 > value2Code:BigDecimal val1 = Classe.1getData1(); BigDecimal val2 = class2.getData2();
but I tried
but this does not work. Any idea on this is appreciated.Code:val1.CompareTo(val2)
Bookmarks