Building Java Programs: A Back to Basics Approach 4th Edition Stuart Reges - eBook PDF download
Building Java Programs: A Back to Basics Approach 4th Edition Stuart Reges - eBook PDF download
https://ebookluna.com/download/building-java-programs-a-back-to-
basics-approach-ebook-pdf/
(eBook PDF) Building Java Programs: A Back to Basics Approach 4th Edition
by Stuart Reges
https://ebookluna.com/product/ebook-pdf-building-java-programs-a-back-to-
basics-approach-4th-edition-by-stuart-reges/
Building Java Programs - A Back to Basics Approach 5th Edition Stuart Reges
- eBook PDF
https://ebookluna.com/download/building-java-programs-a-back-to-basics-
approach-ebook-pdf-2/
Building Java Programs: A Back to Basics Approach 4th Edition (eBook PDF)
https://ebookluna.com/product/building-java-programs-a-back-to-basics-
approach-4th-edition-ebook-pdf/
(eBook PDF) Building Java Programs: A Back to Basics Approach 5th Edition
https://ebookluna.com/product/ebook-pdf-building-java-programs-a-back-to-
basics-approach-5th-edition/
College physics : a strategic approach 4th Edition Stuart Field - eBook PDF
https://ebookluna.com/download/college-physics-a-strategic-approach-ebook-
pdf/
https://ebookluna.com/download/artificial-intelligence-a-modern-
approach-4th-edition-ebook-pdf/
https://ebookluna.com/product/ebook-pdf-building-python-programs-1st-
edition/
Java: A Beginner's Guide: Create, Compile, and Run Java Programs Today 9th
Edition Herbert Schildt - eBook PDF
https://ebookluna.com/download/java-a-beginners-guide-create-compile-and-
run-java-programs-today-ebook-pdf/
https://ebookluna.com/product/ebook-pdf-introduction-to-programming-with-
java-a-problem-solving-approach-3rd-edition/
Building Java Programs
A Back to Basics Approach
Fourth Edition
Stuart Reges
University of Washington
Marty Stepp
Stanford University
The authors and publisher of this book have used their best efforts in
preparing this book. These efforts include the development, research, and
testing of the theories and programs to determine their effectiveness. The
authors and publisher make no warranty of any kind, expressed or implied,
with regard to these programs or to the documentation contained in this book.
The authors and publisher shall not be liable in any event for incidental or
consequential damages in connection with, or arising out of, the furnishing,
performance, or use of these programs.
Copyright © 2017, 2014 and 2011 Pearson Education, Inc. or its affiliates.
All rights reserved. Printed in the United States of America. This publication
is protected by copyright, and permission should be obtained from the
publisher prior to any prohibited reproduction, storage in a retrieval system,
or transmission in any form or by any means, electronic, mechanical,
photocopying, recording, or otherwise. For information regarding
permissions, request forms and the appropriate contacts within the Pearson
Education Global Rights & Permissions department, please visit
www.pearsonhighed.com/permissions/.
10 9 8 7 6 5 4 3 2 1
Introductory computer science courses are often seen as “killer” courses with
high failure rates. But as Douglas Adams says in The Hitchhiker's Guide to
the Galaxy, “Don't panic.” Students can master this material if they can learn
it gradually. Our textbook uses a layered approach to introduce new syntax
and concepts over multiple chapters.
Here are some of the changes that we have made in the fourth edition:
Since the publication of our third edition, Java 8 has been released. This new
version supports a style of programming known as functional programming
that is gaining in popularity because of its ability to simply express complex
algorithms that are more easily executed in parallel on machines with
multiple processors. ACM and IEEE have released new guidelines for
undergraduate computer science curricula, including a strong
recommendation to cover functional programming concepts.
We have added a new Chapter 19 that covers most of the functional concepts
from the new curriculum guidelines. The focus is on concepts, not on
language features. As a result, it provides an introduction to several new Java
8 constructs but not a comprehensive coverage of all new language features.
This provides flexibility to instructors since functional programming features
can be covered as an advanced independent topic, incorporated along the
way, or skipped entirely. Instructors can choose to start covering functional
constructs along with traditional constructs as early as Chapter 6. See the
dependency chart at the end of this section.
Case studies. We end most chapters with a significant case study that
shows students how to develop a complex program in stages and how to
test it as it is being developed. This structure allows us to demonstrate
each new programming construct in a rich context that can't be achieved
with short code examples. Several of the case studies were expanded
and improved in the second edition.
The following table shows how the layered approach works in the first six
chapters:
Control Programming
Chapter Data Input/Output
Flow Techniques
procedural
1 methods String literals println, print
decomposition
definite variables, local variables, class
2 loops expressions, constants,
(for) int, double pseudocode
console input, 2D
return
3 using objects parameters graphics
values
(optional)
conditional char pre/post conditions, printf
4
(if/else) throwing exceptions
indefinite
assertions, robust
5 loops boolean
programs
(while)
token/line-based file
6 Scanner file I/O
processing
Answers to all self-check problems appear on our web site and are accessible
to anyone. Our web site has the following additional resources for students:
Source code and data files for all case studies and other complete
program examples
Our web site has the following additional resources for teachers:
Closed lab creation tools to produce lab handouts with the instructor's
choice of problems integrated with the textbook
MyProgrammingLab
MyProgrammingLab is an online practice and assessment tool that helps
students fully grasp the logic, semantics, and syntax of programming.
Through practice exercises and immediate, personalized feedback,
MyProgrammingLab improves the programming competence of beginning
students who often struggle with basic concepts and paradigms of popular
high-level programming languages. A self-study and homework tool, the
MyProgrammingLab course consists of hundreds of small practice exercises
organized around the structure of this textbook. For students, the system
automatically detects errors in the logic and syntax of code submissions and
offers targeted hints that enable students to figure out what went wrong, and
why. For instructors, a comprehensive grade book tracks correct and
incorrect answers and stores the code inputted by students for review.
VideoNotes
Roughly 3–4 videos are posted for each chapter. An icon in the margin of the
page indicates when a VideoNote is available for a given topic. In each video,
we spend 5–15 minutes walking through a particular concept or problem,
talking about the challenges and methods necessary to solve it. These videos
make a good supplement to the instruction given in lecture classes and in the
textbook. Your new copy of the textbook has an access code that will allow
you to view the videos.
Acknowledgments
First, we would like to thank the many colleagues, students, and teaching
assistants who have used and commented on early drafts of this text. We
could not have written this book without their input. Special thanks go to
Hélène Martin, who pored over early versions of our first edition chapters to
find errors and to identify rough patches that needed work. We would also
like to thank instructor Benson Limketkai for spending many hours
performing a technical proofread of the second edition.
Second, we would like to thank the talented pool of reviewers who guided us
in the process of creating this textbook:
Finally, we would like to thank the great staff at Pearson who helped produce
the book. Michelle Brown, Jeff Holcomb, Maurene Goo, Patty Mahtani,
Nancy Kotary, and Kathleen Kenny did great work preparing the first edition.
Our copy editors and the staff of Aptara Corp, including Heather Sisan, Brian
Baker, Brendan Short, and Rachel Head, caught many errors and improved
the quality of the writing. Marilyn Lloyd and Chelsea Bell served well as
project manager and editorial assistant respectively on prior editions. For
their help with the third edition we would like to thank Kayla Smith-Tarbox,
Production Project Manager, and Jenah Blitz-Stoehr, Computer Science
Editorial Assistant. Mohinder Singh and the staff at Aptara, Inc., were also
very helpful in the final production of the third edition. For their great work
on production of the fourth edition, we thank Louise Capulli and the staff of
Lakeside Editorial Services, along with Carole Snyder at Pearson. Special
thanks go to our lead editor at Pearson, Matt Goldstein, who has believed in
the concept of our book from day one. We couldn't have finished this job
without all of their hard work and support.
Stuart Reges
Marty Stepp
Break through
To Improving results
MyProgammingLab™
Through the power of practice and immediate personalized feedback,
MyProgrammingLab helps improve your students' performance.
Programming Practice
With MyProgrammingLab, your students will gain firs-hand programming
experience in an interactive online environment.
Graduated Complexity
MyProgrammingLab breaks down programming concepts into short,
understandable sequences of exercises. Within each sequence the level and
sophistication of the exercises increase gradually but steadily.
Dynamic Roster
Students' submissions are stored in a roster that indicates whether the
submission is correct, how many attempts were made, and the actual code
submissions from each attempt.
Pearson eText
The Pearson eText gives students access to their textbook anytime, anywhere
www.pearsonhighered.com/cs-resources
1. Why Programming? 2
5. Why Java? 7
2. System.out.println 15
3. Escape Sequences 15
1. Syntax Errors 24
2. Logic Errors (Bugs) 28
1. Static Methods 31
2. Flow of Control 34
1. Structured Version 41
1. Primitive Types 64
2. Expressions 65
3. Literals 67
4. Arithmetic Operators 68
5. Precedence 70
2. 2.2 Variables 74
1. Assignment/Declaration Variations 79
2. String Concatenation 82
3. Increment/Decrement Operators 84
1. Scope 99
2. Pseudocode 105
1. DrawingPanel 197
3. Colors 203
4. System.out.printf 269
3. Simulations 324
3. Graphics2D 624
1. Collections 716
3. Iterators 720
2. Sorting 837
3. Shuffling 838
3. Collisions 1075
4. Rehashing 1080
4. Index 1179
5. Credits 1193
Chapter 1 Introduction to Java
Programming
1. 1.1 Basic Computing Concepts
1. Why Programming?
5. Why Java?
2. System.out.println
3. Escape Sequences
1. Syntax Errors
2. Logic Errors (Bugs)
1. Static Methods
2. Flow of Control
1. Structured Version
Introduction
This chapter begins with a review of some basic terminology about
computers and computer programming. Many of these concepts will come up
in later chapters, so it will be useful to review them before we start delving
into the details of how to program in Java.
After we have reviewed the basic elements of Java programs, we will explore
the technique of procedural decomposition by learning how to break up a
Java program into several methods. Using this technique, we can break up
complex tasks into smaller subtasks that are easier to manage and we can
avoid redundancy in our program solutions.
Discovering Diverse Content Through
Random Scribd Documents
The Story of a Wandering Sheep
The sheep is generally regarded as a very uninteresting animal, but
occasionally there is an exception.
A man who had a small farm, stocked mostly with cattle, had a few
sheep which he kept in a small pasture by themselves. Among this flock
was a young masculine who had gradually acquired the opinion that he
was an unusually brilliant and promising sheep. In order to exhibit the
good opinion he had of himself he developed a pugnacious tendency
and a disposition to wander about. Escaping from the pasture, he was
reported one day as being a trespasser on the farm of a near neighbor.
The following evening the owner of the young sheep proceeded to the
neighbor’s farm to reclaim the wanderer and put him back where he
belonged. It had been a showery day and everything was saturated
with rain. Approaching the farmyard where the strayed sheep was
reported to be, the owner saw the wife of the farmer engaged in
milking a cow. Incidentally, he saw the sheep on the other side of the
cow from the matron. And almost immediately he saw other
developments. The sheep had been regarded with strong disfavor by
the strange cows with which he was surrounded and with a spirit of
resentment he suddenly started head down at the cow being milked.
Although the lady who was busily engaged in the milking process was
totally unconscious of what was happening, it was not so with the cow.
Just at the psychological moment, the cow sprang forward and the
sheep came in violent contact with the lady and the milk pail. The
impact was so great that the woman was thrown over backward in the
soft mud of the barnyard, the contents of the pail being liberally
distributed about her robust person.
Although the physical injury was not serious, the damage to the lady’s
dignity was such that the owner of the sheep decided that it was a very
inappropriate time to claim his missing property and hastily beat his
retreat to make his reappearance when the lady’s wrath had somewhat
subsided.
While the lady sheep is a model of amiability under practically all
circumstances, as before suggested, the male of the species develops
egotism at a very early date; he also develops a tendency to resent
anything and everything that reflects upon his dignity. So, while it is
entirely appropriate to emphasize the educational advantages of farm
life to growing boys and girls as calculated to develop many desirable
qualities, it is easily possible for such contact to result disastrously to
the young male sheep as evidenced by the following depressing
incident.
Enter the villains of this tragedy! four small boys, each armed with a
small, harmless, but otherwise objectionable birch stick. The prisoner
glared at them, whereupon one after another they advanced and
tapped the young ram playfully on the nose with their sticks. In violent
resentment he would lunge forward against the loose board, making a
tremendous racket. Although this enterprise only lasted a few minutes
before it became tiresome to the gamins in question, it was sufficient to
completely wreck whatever might have been previously left of this
sheep’s amiability. He became an anarchist then and there.
The next morning was rainy and there was no probability that any berry
pickers would visit the pasture, so the sheep which had expressed his
dissatisfaction by many loud protests during the previous days, was
gladly released to be allowed to go at large. It was here that Grim
Tragedy stalked forth. The farmyard was a quagmire as a result of the
rain and as one of the older “boys” started to carefully pick his way
through the mud with two brimming milk pails, the sheep caught sight
of him and decided that this was the time to avenge some of those
insults of the day before. Just as the young man was crossing the
deepest portion of the bog, he was made the victim of a rear attack.
The result can easily be imagined. In his great wrath, extricating
himself, he cornered the pugnacious sheep and changed him into
mutton in a very few seconds.
It has been stated before that contact with the various animal
inhabitants of a well equipped farm is in itself an educational process of
no small value; it may be added that there is often as much diversion
as education in these experiences.
A Hen Heroine
Another true instance of hen wisdom deals with an ancient female of
that species, who had lived to ripe old age because of her
extraordinarily good judgment in bringing up chickens. One day the
owner heard a great outcry. Looking out she saw the hen engaged in a
vigorous battle with a crow. It may be incidentally mentioned that while
the crow does not ordinarily molest young chickens, there are
exceptions and this was a very bold marauder indeed. However, he
reckoned without his host, as the old hen had lived long enough and
had acquired sufficient knowledge of crow depravity to meet the
emergency in a business-like way. She viciously attacked and continued
to fight the crow, who was unable to get in a position to fly away, until
help arrived and the crow was promptly dispatched. No young fowl, a
year or two old, would have had the requisite courage, but this hen,
who had long since passed the stage of edibility as poultry, had
gradually developed the intelligence and pluck to fight the crow with his
own weapons.
It is often pathetic to see how difficult it is for a normal small boy who
lives in the crowded sections of a big city to find any legitimate outlet
for his energies. He grows up with relatively few opportunities to
develop any sense of personal responsibility. Not so the boy on the New
England farm. If it is a real farm and conducted as a means of
livelihood for the family, responsibility is constantly camping on his trail.
One day they were given permission to visit a married cousin of one of
the boys at her home some miles away. For the first time in their young
lives they were allowed to start out alone with a horse and buggy. It
was a great occasion and they began their journey with much
anticipation, but before they had gone a mile Dull Care had settled
upon them and attended them continuously until their return in the
early evening.
Only a short time before, one of the boys heard a distressing story
relating to an ox that had died from being overheated. A premonitory
symptom of the approaching demise of the ox had been that he “lolled.”
This had made a deep impression on the boy who heard the story.
And it may also be assumed that the next time that horse was driven
by those boys, he was not permitted to lag on his journey.
“It is my custom,” said he, “to pay for a borrowed horse in praising, but
this time I want to pay some other way.”
Just how much blindness had to do with the total lack of courage of this
borrowed horse would be hard to say, but it was probably a
contributing factor.
The little Morgan mare of quite advanced age, contributed by the young
lady as her quota of the team, had very peculiar ideas. She thoroughly
disapproved of the trip in the first place, and secondly the young man’s
driving was also entirely different from anything she was accustomed
to. At the prospect of returning home, however, she seemed to cheer
up amazingly until she found herself being turned off on the side road.
She moped along for a few yards and then began to be very lame.
“This is a nice prospect!” said the driver. “I think we had better turn
straight around and get home, if we can.”
The young lady was quite well acquainted with the little white mare.
She took over the reins and gave the poor, lame horse a couple of
slashes with the whip and a miracle was performed. The lameness was
cured in an instant.
But, however sardonic may be the attitude of Mr. Crow toward the poor,
plodding human farmers, he is quick to recognize his master, the
kingbird.
Within twenty-four hours the word had gone around to all the
marauders, and for years thereafter they never came near those
premises again. Each season the kingbird and his wife would come
back. That was sufficient protection for the young chickens who could
scratch about within the limits of their enclosure with perfect safety. It
can be taken for granted that everything was done by the owners of
the farm to make it pleasant for the bird policeman, who by his
extraordinary activities and fearlessness strikes terror to the heart of
the swiftest hawk, lest he be blinded by one of the lightning dashes of
the kingbird who always aims for the eyes.
About the first sure indication of actual spring in this section is the
appearance of these welcome birds whose cheerfulness seems to be
contagious. They seem to be socially inclined toward humans and are
quite apt to locate their nests in close proximity to some farmhouse.
Indeed at times they seem to assume a rather proprietary attitude
toward the farm owners themselves, as shown by the following typical
incident.
One sultry day in July, it was noted at a certain farmhouse, that there
seemed to be considerable excitement among the robins. They were
unusually vociferous and someone wise to their habits suggested that
probably the young birds were about ready to make their first trial
flights. On the Sunday morning in question, most of the family had
gone to church when a certain slacker, who was left behind, took his
comfortable seat on the porch facing the lawn. The house dog was
lying on the grass nearby and all was quiet among the robins with one
exception. The exception was expressing high disapproval of
something. Suddenly there was the chatter of a squirrel in a clump of
trees a short distance away, and the dog arose to his feet and started
leisurely down to investigate. When he had gone about fifty feet there
suddenly developed a perfect din of protest, several robins joining in
the chorus to explain to the dog how unwelcome he was and no doubt
including various other uncomplimentary comments.
It was plainly depressing to the dog; he had had no quarrel with the
robins and saw no reason why they should talk to him in such abusive
terms. He came dejectedly back to his original location and lay down.
The chorus of disfavor stopped. Meantime, however, the robin in the
tree directly in front of the porch continued his tirade. Finally the dog
again arose and went around the corner, the man on the porch decided
to go in the house, and immediately all clamour ceased.
The Haunted Cat
At another farmhouse there were two well fed and properly cared for
cats actively engaged in the ever necessary warfare against mice. A
colony of swallows had built their nests under the eaves of a large barn.
So far as the human inhabitants of the farm could know there was no
essential difference in the moral characters of the two cats. But while
one of these cats could circulate around the buildings and no swallow
would seem to take any interest in the matter, as soon as the other cat
made her appearance in the space between the house and barn,
various active members of the swallow colony would immediately issue
forth from their retreat and proceed to swoop around and around the
cat a few feet from the ground, to her great discomfiture and
embarrassment. It became practically impossible for the cat to go out
of doors without undergoing this ordeal. She became a nervous wreck
and finally had to avoid this open area and take her promenades in
another direction.
To people who have spent their entire lifetime in the city, these
incidents of animal life might easily seem to be mostly imaginary, but to
those who are of receptive mind and keep a watchful eye upon the
various activities of the animal creation as revealed to them by
residence in the open country, there is presented a panorama of
individual traits, numerous and delightfully varied.
CHAPTER VII
Legends of Rural Spooks
It must be regretfully stated that the old time folklore of the supposed
supernatural has apparently vanished from modern New England.
Skepticism has seized upon the present generation and such genuine
unalloyed ghost stories as still persist are regarded as the harmless
delusions of old age. Thus, much that furnished thrills in earlier days
has departed.
They were creepy enough, those ancient tales. And in most instances
they were vouched for as strictly true by people whose reputations for
veracity were beyond dispute.
The process at that time was to “set” the milk in shallow tin pans and
skim off the cream when the milk had become sour. The cream was
then made into butter. Where there were quite a number of cows, a
considerable stack of these tin pans was required. Such as were not in
use would be placed in an orderly pile on a high shelf in the milk room.
Well, this highly respectable and truthful family would do nothing of the
kind. They would remain quietly reading the weekly paper, or knitting,
or popping corn, according to age and disposition; because they knew
no milk pans had stirred an inch. It was merely the spook amusing
himself.
And still there are people in this age of jazz who think the “old times”
had no excitement.
Most of the practical jokes of the spook were harmless, but in a given
instance he seems to have gone rather too far.
There is significance in the fact that although most people of the rural
districts long ago lost interest in “spirit” phenomena, it has lately
engaged the attention of city dwellers to an increasing extent. Such
investigations passed under the ban of country people because of the
current impression that they were generally demoralizing in their
influence. Those who maintained the churches were skeptical and this
developed antagonisms, which affected attendance upon church and
Sunday school. The “ouija board” is about all there is left of the old
time manifestations in rural New England.
Before his marriage the young husband had made the acquaintance of
numerous fair ones of whom chorus girls seemed the most congenial.
But he soon found it wise to avoid their company. With her faithful
ouija, his wife could have him shadowed at all hours of the day. It was
too uncanny. He became the most docile and punctilious of husbands.
Then followed the familiar sounds of the horse being detached from the
buggy and led into the stall. The farmer hastily readjusting his clothing,
took the lamp and went down stairs to admit the visitor. Seeing and
hearing no one he went down the porch and crossed the yard to the
barn. He found no strange horse, wagon or driver.
When the wife was told that what they had both heard so distinctly was
a delusion, she looked very grave.
The farmer and his wife went to bed and let us hope they slept the
sleep of the just. The next morning a telegram announced the sudden
death of a near relative. It would be hard to convince any of their
descendants that this fine old couple had betrayed any weak
superstitious delusions in describing this mysterious combination of
happenings.
By this time it was very dark but he was able to get a glimpse of two or
three cabins on the way that seemed too utterly unattractive for
consideration. Finally he came to a more commodious looking
establishment and decided to go no further if he could possibly avoid it.
Stopping his horse in front of the house he hallooed several times.
There was no answer, so inferring the inhabitants were sound sleepers,
the young man concluded to first find shelter for his horse and then
come back and in some way or other secure a night’s lodging for
himself.
As the weary traveler approached the front step, the door began to
turn, swung around slowly and finally stood wide open. There was not
the slightest noise nor sign of any human agency associated with the
door. Every individual hair arose on the young man’s head. He thought
with joy and relief of that good, faithful animal munching his dry hay.
He hastened back to the shed, lay down as near the horse as safety
would permit, and so managed to pass the night.
It is probable that had the salesman had the time and disposition to
make a careful daylight inspection of the vacant house, he might have
discovered some perfectly natural cause for the mysterious actions of
the front door. But his curiosity was not very active just then.
There was the usual legend of some ghastly tragedy, and the record of
spookish antics, frequently associated with such histories. Altogether
the salesman was disposed to consider this a real find and worth
looking after.
The most conspicuous member of the hotel staff was a colored porter.
Bland and attentive, this young man took his position very seriously
indeed. The salesman became very chummy with the porter. He found
several occasions to utilize his services and showed his appreciation by
liberal tips. It therefore seemed only natural to the porter that the
salesman should propose that he have his company for an evening’s
stroll to look over the town, especially as the suggestion was associated
with the promise of an extra half dollar.
In his conversation with the clerk, the salesman had learned the
general location of the haunted house, and waiting until it was quite
dark he started out in that direction with his escort. He remarked on
the darkness of the night, saying it was just the kind of a night for
ghosts to be on duty. Finally he asked his companion if he knew of any
haunted houses in town. The porter rather reluctantly admitted that he
did know of one and that they were getting pretty near to it.
By this time the porter had evidently lost interest in the excursion and
suggested that he would be needed at the hotel. He was, however,
prevailed upon to go a little further. Shortly afterward, there loomed up
a large old-fashioned dwelling surrounded by considerable grounds
which he pronounced to be the haunted house. It was uninhabited, of
course.
The porter again urged that he would be needed at the hotel, but the
salesman insisted that he must get a little nearer before going back.
When nearly opposite the house, he stopped and took a careful look at
the building which now looked dismal enough in the dim starlight.
But his companion did not answer. He disappeared down the road at a
pace that no professional sprinter could excel.
The prosperous farmer of that period was expected to provide his wife
with at least one black silk dress in addition to the one she may have
had as a part of her wedding outfit, the shawl adding the final touch of
elegance to her wardrobe.
One season the pedlar made his usual rounds, did a considerable credit
business, delivering his goods as usual and—was never seen again.
The farmers who had provided themselves with funds to settle their
accounts could not understand the case. The pedlar was apparently the
last man of their acquaintance to neglect his collections. Time passed,
the year rolled around and nothing was heard. It was indeed a mystery.
One day a marvelous story went the rounds. A well-known young man
announced that he could keep his secret no longer. He had a confession
to make.
He said that about the time of the pedlar’s last visit, returning home
one evening, he had overtaken two men on a lonely road through the
woods, who were carrying a heavy burden wrapped in a blanket.
Finding they were discovered the men had required him, on penalty of
death, to help them bury a man’s body. It was the pedlar.
The accused were naturally placed under arrest, but their denials of the
crime were not vehement as might have been expected, but were
calmly contemptuous. They arranged their affairs as best they could
and settled down to endure confinement in the county jail as patiently
as possible until the next session of court. There does not seem to have
been any evidence to corroborate the testimony of the principal
witness, and when he later appeared before the county prosecutor and
told him the alleged confession was merely a romance suggested to his
mind through a badly distorted sense of humor, there was nothing
further to be done with the alleged murderers except to release them.
While in these latter days such a hoax on the authorities would likely
prove unpleasant to the joker, he apparently escaped any legal penalty.
But he found it expedient to shortly leave the neighborhood, as the
theory was promptly advanced that the original confession was really
justified, but that the witness had in some manner been induced by the
accused parties to retract, probably by a liberal bribe. His later
prosperity in a large New England city was generally attributed to this
source by censorious former neighbors, although others, probably
better informed, were aware that he was a highly paid and valued
employee in a large mercantile establishment.
This would seem to be the logical end of this narrative, but although
the subsequent history of the case can be rather briefly told, what has
been heretofore stated is but the beginning of the story.
Those who had been accused of the crime did not follow the example
of the unreliable witness, but remained to spend the balance of their
days attending to their usual occupations in the town where they had
lived so long. One of these men was considerably older than the other,
and although there had been no special intimacy apparent between the
two from year to year, when the older man eventually developed what
promised to be a fatal illness, the other promptly gave over his business
to a subordinate and took up his abode at the home of the sick man.
Day after day, and in fact night after night, he was always at the
invalid’s call and it was generally and plausibly reported that no one
was left alone with the sick man from that time until his death.
Naturally those who enjoyed the sensational, immediately assumed that
the attendant was afraid to permit his former alleged associate in crime
any opportunity for private conversation with others lest he unburden
his mind by a confession.
During the last years of the man so carefully watched by his partner, he
lived in a large old-fashioned house on a back street, surrounded by
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookluna.com