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 > CompareTo for O...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 8 Topic 15910 of 16566
Post > Topic >>

CompareTo for Objects

by Andrew Marcus <mainhoonanjaane@[EMAIL PROTECTED] > Mar 24, 2008 at 11:49 AM

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??
 




 8 Posts in Topic:
CompareTo for Objects
Andrew Marcus <mainhoo  2008-03-24 11:49:15 
Re: CompareTo for Objects
Alex.From.Ohio.Java@[EMAI  2008-03-24 12:11:35 
Re: CompareTo for Objects
"Jeff Higgins"   2008-03-24 15:39:41 
Re: CompareTo for Objects
Eric Sosman <Eric.Sosm  2008-03-24 16:12:26 
Re: CompareTo for Objects
Roedy Green <see_websi  2008-03-25 04:15:23 
Re: CompareTo for Objects
Chase Preuninger <chas  2008-03-30 11:54:35 
Re: CompareTo for Objects
Patricia Shanahan <pat  2008-03-30 12:49:41 
Re: CompareTo for Objects
Eric Sosman <esosman@[  2008-03-30 15:57:45 

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:19:43 CST 2008.