Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Help > Re: CompareTo f...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 15912 of 16566
Post > Topic >>

Re: CompareTo for Objects

by Lew <lew@[EMAIL PROTECTED] > Mar 24, 2008 at 10:19 PM

Andrew Marcus wrote:
> Can anyone help?All I want to do the following in one of my program:-
> 
> Object p=.................;//some object corresponding to my
> program.But I couldn't do
> 
> if(p.compareTo(object k)<=0)
>     .................
> 
> CompareTo methods is for integer but I want to do it for objects,what
> should I do to handle that problem??

Oh, you got such good help in both groups to which you multi-posted.  It
is 
somewhat rude to those helpful folks that you multi-posted, though.  You 
should at worst have cross-posted, but really one of the groups would have

sufficed.

-- 
Lew
 




 1 Posts in Topic:
Re: CompareTo for Objects
Lew <lew@[EMAIL PROTEC  2008-03-24 22:19:00 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 15:32:38 CST 2008.