Article View: borland.public.jbuilder.java.language
Article #17128Dear Santa, texteditor application wanted
From: Jack
Date: Fri, 11 Dec 1998 00:00
Date: Fri, 11 Dec 1998 00:00
41 lines
2432 bytes
2432 bytes
Hi there!
I'm teaching myself Java by using one of those "teach yourself java in
half-an-hour or you're money back" books (you know the kind?). I am going
through some exercises which I'm finding pretty challenging. The following
is one that I wish I could find some source code for. There's no solution
provided for this one you see.
I am trying to build a Java Program (with JBuilder 1.0 standard) which can:
1)
a) read text,
b) process an index (object) of all words occurring,
c) together with a list of pages where they appear.
For the purposes of this program the number of lines is assumed to be a
configurable number.
Additional functionality, which should be part of the program include:
2)
a) avoiding redundant repetition of page numbers in a entry of a word.
b) allowing words to be excluded that don't require referencing (eg. to,
and, or, with).
This should be a configurable list of words.
c) for each word there should be a count of the total number of references.
d) total 'sentence number' count.
e) total 'word number' count.
Basically, this program should be able to take a text input (with a page
length of x amount of lines)
then the 'index' should kick in to analyse the text stream, and the output
should tell you the number of sentences, words and words per sentence.
I'm like to see the source code for a basic version of this kind of Java
Program. It would allow me to design my own implementation. It wouldn't
matter if the code does too much or not enough to cover the requirements
listed above in 1) and 2). A basic piece of source code that does what 1)
above asks of me would be great.
Happy Christmas one and all!
Technical Details
Message-ID:
<74rtq6$m6t$1@newsreader5.core.theplanet.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<72ssct$20l19@forums.borland.com> <73jh9u$d587@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,6aa1b6402d00343d X-Google-Attributes: gidf74b3,public From: "Jack" <jack@caerlanrigsteps.freeserve.co.uk> Subject: Dear Santa, texteditor application wanted Date: 1998/12/11 Message-ID: <74rtq6$m6t$1@newsreader5.core.theplanet.net> X-Deja-AN: 421293548 References: <72ssct$20l19@forums.borland.com> <73jh9u$d587@forums.borland.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: abuse@theplanet.net X-Trace: newsreader5.core.theplanet.net 913406598 22749 62.136.4.89 (11 Dec 1998 20:03:18 GMT) Organization: Customer of Planet Online NNTP-Posting-Date: 11 Dec 1998 20:03:18 GMT Newsgroups: borland.public.jbuilder.java.language