What is the argument type of compareTo method?

Java – compareTo() Method The method compares the Number object that invoked the method to the argument . It is possible to compare Byte, Long, Integer, etc. However, two different types cannot be compared, both the argument and the Number object invoking the method should be of the same type.

Sizin İçin Seçtik  Iç çevre nelerdir?

Leave a Reply

Your email address will not be published. Required fields are marked *

What is the argument type of compareTo method?

Java – compareTo() Method The method compares the Number object that invoked the method to the argument . It is possible to compare Byte, Long, Integer, etc. However, two different types cannot be compared, both the argument and the Number object invoking the method should be of the same type.

Sizin İçin Seçtik  Mxc KYC Doğrulama nasıl yapılır?

Leave a Reply

Your email address will not be published. Required fields are marked *