0

I have an error at this line of java program that methed getPrice in class book cannot be applied to given types. Required int

if(BOOK1.getPrice() > BOOK2.getPrice()) { BOOK1 . display(); } else { BOOK2 . display(); }

6th Jul 2020, 1:32 AM
abdullah
4 Respostas
0
I first post the full code but there are not enough lines
6th Jul 2020, 7:16 AM
abdullah
0
Getprice return price.
6th Jul 2020, 7:17 AM
abdullah