Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Virtual Machine / April 2006

Tip: Looking for answers? Try searching our database.

Trying to build a library system..

Thread view: 
Becky - 07 Apr 2006 08:14 GMT
Hi All..

I'm trying to write a program in java that would look something like
the following:

======================
  Welcome to your Library
======================

Creating catalogue.... Done
Populating catalogue.... Done
The current books in the catalogue are:

Title: The Truth
Author: Terry Pratchett
Year: 2000

Title: The Hitchhikers Guide to the Galaxy
Author: Douglas Adams
Year: 1995

Title: The Root of all Evil
Author: JD Frazer
Year: 2001

to build it I was thinking of having three classes: Library (used to
drive the program), Catalogue and Book..
I don't know if I'm in the right track, but in the Library class, have
method filldata() which would create an instance of catalogue and
populate the catalogue and print it..

In the catalogue class have methods such as addbook(), getbook(), and
printCatalogue(), which will talk to and get information from Books
class..

Has anyone ever written something similar? If not, I'm sure it's not
very hard to do, if someone could perhaps write the backbone of the
program and I'll finish up the specifics.. It'd be very helpful..

Thanks..

bec.
Oliver Wong - 07 Apr 2006 17:18 GMT
> Hi All..
>
> I'm trying to write a program in java that would look something like
> the following:

   Don't multipost, crosspost instead:
http://www.cs.tut.fi/~jkorpela/usenet/xpost.html

   - Oliver
Nate Smith - 07 Apr 2006 20:09 GMT
>> Hi All..
>>
[quoted text clipped - 5 lines]
>
>    - Oliver

 actually, after years of getting trolling & spamming cross-posted
 to the world, i'm thinking allowing cross-posting was the biggest
 mistake the usenet creators made back in the days before the WWWeb.

 Becky should have posted in a java language group rather than
 just any group with java in its name.  but perhaps a one-time
 plea for homework help is fine.  comp.lang.java.help, programmer,
 developer....

 but hey...no harm no foul.

- nate
Oliver Wong - 10 Apr 2006 21:31 GMT
>>> Hi All..
>>>
[quoted text clipped - 14 lines]
>
>  but hey...no harm no foul.

   Spam seems to be inevitable. With that in mind, spam which cross post
(so that I can mark it "read" in one group, and have it be marked "read" in
all groups) is a lot less unpleasant than spam which has been multiposted
(which I have to mark "read" in every newsgroup I encounter it in).

   As the page I linked to explains, it takes less effort on the part of
the poster to crosspost instead of multiposting, and it makes for a better
experience for us, the readers. So there's almost no reason not to favor
crossposting over multiposting.

   Asking a poster to "choose the appropriate newsgroup" requires actual
effort on the part of the poster. I'm not so optimistic that most posters
will go for that extra effort.

   - Oliver
Nate Smith - 10 Apr 2006 21:36 GMT
>    Spam seems to be inevitable. With that in mind, spam which cross post
> (so that I can mark it "read" in one group, and have it be marked "read"
> in all groups) is a lot less unpleasant than spam which has been
> multiposted (which I have to mark "read" in every newsgroup I encounter
> it in).

 wow, you are lucky.

 that never works for me - i have to kill them in every group
 they appear in.

 infact, that has never worked for me, dating all the way
 back into the 80's.

 how do you get it to work that way?

- nate
Roedy Green - 10 Apr 2006 23:22 GMT
On Mon, 10 Apr 2006 16:36:53 -0400, Nate Smith
<greystone@net1plus.com> wrote, quoted or indirectly quoted someone
who said :

>  that never works for me - i have to kill them in every group
>  they appear in.
[quoted text clipped - 3 lines]
>
>  how do you get it to work that way?
in Agent when you set up a kill filter you have the option of doing
one for all groups or just one.
see http://mindprod.com/jgloss/agent.html

Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.