I am having a method
public double getNumberOfBooks(final int count, final double Price,
final Long Quantity, final double totalValue)
Now I am calling this method from other java class as mentioned below
public void testgetNumberOfBooks()
{
Long obj = Long.valueOf(5l);
long val1 = obj.longValue();
//long val = 100L;
final double percentageDiscountComp =
testClass.getNumberOfBooks(10, 900.00d, val1, 1000.00d);
}
But not able to pass the value of Long in argument.It's giving error as The expression of type long is boxed into Long.