What I am trying to do is to whether the object (assuming object is long type) is greater than object withing array.
The line with if( item > queArray[j]) ) point an error saying The operator > is undefined for argument type(s) T, T.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The object isn’t known to be of
longtype. All that’s known is that it’s of some particular typeT.Either cast the object to a
Long, or more generally, use theComparable.compareTomethod to compare objects known to be comparable.