Talk About Network



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: Comparator ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 9 of 11 Topic 16040 of 16078
Post > Topic >>

Re: Comparator in the driver

by thufir <hawat.thufir@[EMAIL PROTECTED] > May 1, 2008 at 05:01 PM

On Wed, 30 Apr 2008 21:15:06 -0400, Lew wrote:


>> still keep the collections in the driver to meet other requirements.
>> 
>> Any pointers as to how to do that?
> 
> Just declare a top-level class in that package.
> 
> package a00720398.util;
> 
> public class GuestComparer implements Comparator <Guest>


Sorry, what I meant to ask was:

How is GuestComparator, which is in GuestComparator.java, used from the 
driver?  is it instantiated:

GuestComparator gc = new GuestComparator();

or something?

I'll try again and see what sort of errors I get.

(putting things into seemingly oddly named packages is a requirement, 
presumably for the instructors convenience, by the way.)

-Thufir




 11 Posts in Topic:
Comparator in the driver
thufir <hawat.thufir@[  2008-04-30 08:11:35 
Re: Comparator in the driver
"Matt Humphrey"  2008-04-30 07:51:59 
Re: Comparator in the driver
thufir <hawat.thufir@[  2008-04-30 12:35:32 
Re: Comparator in the driver
thufir <hawat.thufir@[  2008-04-30 12:51:54 
Re: Comparator in the driver
Lew <lew@[EMAIL PROTEC  2008-04-30 21:15:06 
Re: Comparator in the driver
Roedy Green <see_websi  2008-04-30 13:43:44 
Re: Comparator in the driver
Thufir <hawat.thufir@[  2008-04-30 16:29:40 
Re: Comparator in the driver
Roedy Green <see_websi  2008-05-02 10:56:20 
Re: Comparator in the driver
thufir <hawat.thufir@[  2008-05-01 17:01:32 
Re: Comparator in the driver
Lew <lew@[EMAIL PROTEC  2008-05-01 18:23:34 
Re: Comparator in the driver
thufir <hawat.thufir@[  2008-05-02 04:57:13 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Fri May 16 11:37:19 CDT 2008.