Java: The Complete Reference Herbert Schildt instant download
Java: The Complete Reference Herbert Schildt instant download
download
https://ebookmeta.com/product/java-the-complete-reference-
herbert-schildt/
https://ebookmeta.com/product/java-the-complete-reference-
complete-reference-series-13th-edition-schildt/
https://ebookmeta.com/product/java-the-complete-reference-
twelfth-edition-schildt/
https://ebookmeta.com/product/java-a-beginners-guide-create-
compile-and-run-java-programs-today-herbert-schildt/
https://ebookmeta.com/product/dk-eyewitness-prague-2020-travel-
guide-2nd-edition-dk-eyewitness/
Unexpected Addition an over the top forbidden professor
and student age gap instalove romance 1st Edition Karla
Doyle Flirt Club
https://ebookmeta.com/product/unexpected-addition-an-over-the-
top-forbidden-professor-and-student-age-gap-instalove-
romance-1st-edition-karla-doyle-flirt-club/
https://ebookmeta.com/product/get-rich-with-dividends-a-proven-
system-for-earning-double-digit-returns-3rd-edition-marc-
lichtenfeld/
https://ebookmeta.com/product/northwind-1st-edition-paulsen-gary/
https://ebookmeta.com/product/what-makes-humans-unique-evolution-
and-the-two-structures-of-mind-1st-edition-michael-robbins/
https://ebookmeta.com/product/cambridge-igcse-chemistry-
coursebook-with-digital-access-2-years-cambridge-international-
igcse-5th-edition-harwood/
British Coastal Weapons vs German Coastal Weapons The
Dover Strait 1940 44 1st Edition Neil Short
https://ebookmeta.com/product/british-coastal-weapons-vs-german-
coastal-weapons-the-dover-strait-1940-44-1st-edition-neil-short/
CompRef_2010 / Java: The Complete Reference, Twelfth Edition / Schildt / 126046-341-9 / blind folio: i
The
Complete Java™
Reference Twelfth Edition
The
Complete Java™
Reference Twelfth Edition
Herbert Schildt
ISBN: 978-1-26-046342-2
MHID: 1-26-046342-7
The material in this eBook also appears in the print version of this title: ISBN: 978-1-26-046341-5,
MHID: 1-26-046341-9.
All trademarks are trademarks of their respective owners. Rather than put a trademark symbol after every occurrence of a
trademarked name, we use names in an editorial fashion only, and to the benefit of the trademark owner, with no intention of
infringement of the trademark. Where such designations appear in this book, they have been printed with initial caps.
McGraw-Hill Education eBooks are available at special quantity discounts to use as premiums and sales promotions or for
use in corporate training programs. To contact a representative, please visit the Contact Us page at www.mhprofessional.com.
Information has been obtained by McGraw Hill from sources believed to be reliable. However, because of the possibility of
human or mechanical error by our sources, McGraw Hill, or others, McGraw Hill does not guarantee the accuracy, adequacy,
or completeness of any information and is not responsible for any errors or omissions or the results obtained from the use of
such information.
Oracle Corporation does not make any representations or warranties as to the accuracy, adequacy, or completeness of any in-
formation contained in this Work, and is not responsible for any errors or omissions.
TERMS OF USE
This is a copyrighted work and McGraw-Hill Education and its licensors reserve all rights in and to the work. Use of this work
is subject to these terms. Except as permitted under the Copyright Act of 1976 and the right to store and retrieve one copy of the
work, you may not decompile, disassemble, reverse engineer, reproduce, modify, create derivative works based upon, transmit,
distribute, disseminate, sell, publish or sublicense the work or any part of it without McGraw-Hill Education’s prior consent.
You may use the work for your own noncommercial and personal use; any other use of the work is strictly prohibited. Your right
to use the work may be terminated if you fail to comply with these terms.
THE WORK IS PROVIDED “AS IS.” McGRAW-HILL EDUCATION AND ITS LICENSORS MAKE NO GUARANTEES
OR WARRANTIES AS TO THE ACCURACY, ADEQUACY OR COMPLETENESS OF OR RESULTS TO BE OBTAINED
FROM USING THE WORK, INCLUDING ANY INFORMATION THAT CAN BE ACCESSED THROUGH THE WORK
VIA HYPERLINK OR OTHERWISE, AND EXPRESSLY DISCLAIM ANY WARRANTY, EXPRESS OR IMPLIED, IN-
CLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICU-
LAR PURPOSE. McGraw-Hill Education and its licensors do not warrant or guarantee that the functions contained in the work
will meet your requirements or that its operation will be uninterrupted or error free. Neither McGraw-Hill Education nor its
licensors shall be liable to you or anyone else for any inaccuracy, error or omission, regardless of cause, in the work or for any
damages resulting therefrom. McGraw-Hill Education has no responsibility for the content of any information accessed through
the work. Under no circumstances shall McGraw-Hill Education and/or its licensors be liable for any indirect, incidental,
special, punitive, consequential or similar damages that result from the use of or inability to use the work, even if any of them
has been advised of the possibility of such damages. This limitation of liability shall apply to any claim or cause whatsoever
whether such claim or cause arises in contract, tort or otherwise.
CompRef_2010 / Java: The Complete Reference, Twelfth Edition / Schildt / 126046-341-9
Contents at a Glance
PART I The Java Language
1 The History and Evolution of Java 3
2 An Overview of Java 21
3 Data Types, Variables, and Arrays 39
4 Operators 67
5 Control Statements 87
6 Introducing Classes 117
7 A Closer Look at Methods and Classes 137
8 Inheritance 171
9 Packages and Interfaces 199
10 Exception Handling 227
11 Multithreaded Programming 247
12 Enumerations, Autoboxing, and Annotations 277
13 I/O, Try-with-Resources, and Other Topics 315
14 Generics 347
15 Lambda Expressions 391
16 Modules 421
17 Switch Expressions, Records,
and Other Recently Added Features 449
PART II The Java Library
18 String Handling 483
19 Exploring java.lang 511
20 java.util Part 1: The Collections Framework 571
21 java.util Part 2: More Utility Classes 653
22 Input/Output: Exploring java.io 713
23 Exploring NIO 763
24 Networking 795
25 Event Handling 819
26 Introducing the AWT: Working with
Windows, Graphics, and Text 851
27 Using AWT Controls, Layout Managers, and Menus 879
28 Images 929
29 The Concurrency Utilities 955
30 The Stream API 1005
31 Regular Expressions and Other Packages 1031
Index
1203
Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxi
vii
Contents ix
Contents xi
finally . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238
Java’s Built-in Exceptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
Creating Your Own Exception Subclasses . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
Chained Exceptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
Three Additional Exception Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245
Using Exceptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246
Chapter 11 Multithreaded Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
The Java Thread Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
Thread Priorities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
Synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
Messaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
The Thread Class and the Runnable Interface . . . . . . . . . . . . . . . . . . . . 250
The Main Thread . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
Creating a Thread . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
Implementing Runnable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253
Extending Thread . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
Choosing an Approach . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
Creating Multiple Threads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
Using isAlive( ) and join( ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258
Thread Priorities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260
Synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
Using Synchronized Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
The synchronized Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
Interthread Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
Deadlock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270
Suspending, Resuming, and Stopping Threads . . . . . . . . . . . . . . . . . . . . . . . . 272
Obtaining a Thread’s State . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274
Using a Factory Method to Create and Start a Thread . . . . . . . . . . . . . . . . . 275
Using Multithreading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276
Chapter 12 Enumerations, Autoboxing, and Annotations . . . . . . . . . . . . . . . . . . . . . 277
Enumerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277
Enumeration Fundamentals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278
The values( ) and valueOf( ) Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . 280
Java Enumerations Are Class Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281
Enumerations Inherit Enum . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283
Another Enumeration Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285
Type Wrappers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286
Character . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287
Boolean . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287
The Numeric Type Wrappers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288
Autoboxing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
Autoboxing and Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290
Autoboxing/Unboxing Occurs in Expressions . . . . . . . . . . . . . . . . . . . 291
Autoboxing/Unboxing Boolean and Character Values . . . . . . . . . . . . 292
Contents xiii
He pulled from his pocket a horn filled with tinder, and striking a
spark into it with a flint and steel, kindled a piece of pitch-wood, and
they went down.
“O, my! if here isn’t an arch; what a nice place that will be to keep
my milk, when I get it.”
“I know that oven will bake well,” said Sally; “it looks as though it
would. Now, I think this is a real nice place, and that Ben has made
a good trade; and, if we have our health, we can pay for it well
enough. Only think how much we’ve saved by living in this house,
which is good enough for young folks just beginning, and better
than many have. Why, it ain’t a month since the trees were growing,
and now it’s all done. Didn’t he make a good trade, Uncle Isaac?”
“He made a better one when he got you, you little humming-bird,”
said Uncle Isaac, who was brim full, and could no longer restrain
himself; patting her on the head, “you would suck honey out of a
rock.”
“I’m much obliged to you, you good old man. I’ll tell you what
we’ll do (that is, when we are able); you shall come over here with
Aunt Hannah, and bring all your tools, and we’ll part off the front
rooms, and have a front entry, ceil up the kitchen, have Uncle Sam
to build fireplaces in the front rooms, and Joe Griffin to make fun for
us. I’ll make you some of those three-cornered biscuit and custard
puddings you like so well. In the evenings we’ll have a roaring fire;
you can tell stories, and we will sit and listen, and knit. Ben says this
is the greatest place for gunning that ever was; and you can bring
on your float and gun, and you and Uncle Sam can gun to your
heart’s content. Ain’t I building castles in the air?” cried Sally, with
another laugh, that made the house ring; “but we must go off, or we
shall be caught.”
A little breeze had sprung up, and Uncle Isaac putting up a bush
for a sail, they landed on the other side without detection.
“Yes.”
“Holler fire.”
“Fire! fire! fire!” screamed Yelf.
As their neighbors rowed up, they could not help laughing to see
two men up to their waists in water, and one of them crying fire.
“I thought,” said the old man, “I’d holler what I could holler the
loudest.”
CHAPTER XVII.
It was very hard for Sally and her mother to part. Since the death
of her father, and while the other children were small, Sally had been
her mother’s great dependence; and, as they came to the edge of
the water, the widow lifted up her voice and wept.
“We are two thirds over now,” said Ben; “we shall be head to the
sea, and soon get under the lee of the island; ’tis better to go ahead
than to go back.”
“Sit down in the bottom of the canoe, Sally; if the water flies over
you, don’t move.”
When the squall struck, the wind seemed to shriek right out, and
in an instant raised a furious sea, drenching them with water from
head to foot. Sally uttered not a word, but sat perfectly still, though
the cold spray flew over and ran under her, wetting her through and
through.
The little boat, managed with consummate skill and strength, rode
the sea like an egg-shell. It began to grow smoother as they
approached the high woods on the island, when Ben, exerting his
strength, drove her through the water, and they were soon at the
mouth of the brook, where it was as smooth as a mill-pond. Jumping
out, he dragged the canoe from the water, and, taking Sally out,
stood her, all dripping, on the beach.
“Isn’t this nice?” she said, as, safe from danger, she basked in the
warm blaze. “I shall always love this great fireplace after this, as
long as I live.”
They now went over the house together; and Sally made Ben
completely happy by telling him she would have been thankful for a
house not half so good. We see in this well-matched and hardy pair
the representatives of those who laid broad and deep the
foundations of our free institutions, and whose strength was in their
homes.
They were now on an island, in the stormy Atlantic, six miles from
the nearest land, which, with the exception of a little strip of grass
along the beach, was an unbroken forest.
Here they had commenced married life, in the face of a long, hard
winter.
It may seem to many of our readers idle to talk about happiness
in relation to people in such circumstances. They, perhaps judging
from their own feelings, wonder how they could pass their time.
In the first place, they had health and strength, were not troubled
with dyspepsia, and hence did not look at life through green
spectacles. They took pride in overcoming obstacles, and feeling that
they were equal to the emergency. They had plenty to do from the
time they rose in the morning till they went to bed at night; not a
moment to brood over and dread difficulties; and a June day was
too short for all they found to do in it. Finally, they loved each other,
had an object to look forward to, had never known any of those
things which are considered by many as necessary to happiness, and
thus neither pined after nor missed them.
Sally had plenty of bed-clothes, which she had made herself; also
beautiful table-cloths and towels of linen, figured, that she had spun,
woven, and bleached; and tow towels, coarse sheets, and table-
cloths for every day. One little looking-glass, about six inches by
eight in size, graced the wall, with a comb-case, made of
pasteboard, hanging below it. They had one really beautiful piece of
furniture, which her father had brought from England—a mahogany
secretary, with book-cases and drawers, and inlaid with different
kinds of wood, contrasting strangely with the rough logs against
which it rested. They had chairs with round posts, and bottoms
made of ash-splints; mugs, bowls, a tea-pot, and pitchers of earthen
ware; and pewter plates, from the largest platter to the smallest
dishes and porringers; also an iron skillet. Ben had a shoe-maker’s
bench, awls and lasts, and quite a good set of carpenter’s tools.
Sally now put all the earthen and new pewter ware upon the
dressers, which made quite a show.
Ben was better than his word, for before night he shot two.
There was one piece of property that Sally valued more than
anything else, because ’twas alive, and there was such a look of
home about it.
The widow Hadlock had a line-backed cow, that gave a great mess
of milk. Sally had milked her ever since she was large enough to
milk; indeed, she milked her that memorable night when Ben and
Sam Johnson went blueberrying in the widow’s parlor.
They raised a calf from her, which was marked just like the old
cow, and Mrs. Hadlock had given it to Sally. The creature, having
been brought up with a large stock of cattle, missing her mates, had
been very lonesome on the island, and roared and moaned a great
deal. As Sally opened the door to throw out some water, the heifer
came on the gallop, and, putting her feet on the door-stone, rubbed
her nose against Sally’s shoulder, and licked her face. The tears
came into Sally’s eyes in a moment. “You good old soul,” said she,
putting her arms round her neck,—half a mind to kiss her,—“do you
know me, and were you glad to see me? I wish I had an ear of corn
to give you.”
After this the cow made no more ado, but went to feeding,
perfectly contented with the knowledge that her old mistress was
present. As night came on, Sally made the discovery that they had
no milk-pail; but Ben was equal to the emergency: he cut down a
maple, cut a trough in it, drove the cow astride of it, while Sally
milked her into this novel pail. That evening Ben dug out a pine log,
put a bottom in it, and a bail, then drove two hoops on it, and made
a milk-pail.
The next day Sally tried out the seals, while Ben went into the
swamp and got some cooper’s flags, which he cut into short pieces,
for lamp-wicks.
Ben had a little yellow dog, with white on the end of his tail, that
would play. Sea-fowl possess a great share of curiosity, which leads
them to swim up to anything strange, in order to see what it is. They
would often swim in to a squirrel, playing in the bushes at the
water’s edge, to see what he’s about. The gunners take advantage
of this trait in their character; they teach a little dog to play with a
stone on the beach: he’ll roll it along the ground, stand up on his
hind legs with it in his fore paws, and when he gets tired of it, his
master’ll throw him another from his ambush. The birds swim in to
see what he is doing, and are killed, and the little dog swims off and
brings them ashore. All dogs cannot be taught this, only those who
have a genius for it.
Tige Rhines would pick up birds right in the surf, or in the dead of
winter, but could never be taught to play; he was too dignified.
“To shoot those coots; I never saw such a chance for a shot in my
life. I shouldn’t wonder if I could knock over twenty with this big
gun.”
“Why, Ben, you must be out of your head; do you know what day
’tis? would you go gunning on the Lord’s day?”
“Well, I never would begin by breaking the Lord’s day; ’tis not
right, and we shall not prosper; if we’ve not much else, let us, at
least, have a clear conscience. What do you think your father and
mother would say, if they heard you had fired a gun on the Lord’s
day?”
He took his ramrod, and thumped on the side of the house; the
coots took to flight in an instant.
“There goes the temptation,” said he. “I didn’t know before that
you was a professor of religion.”
“No more I ain’t, nor a possessor either; wish I was; but I mean
to keep the Lord’s day; I’ll do that much, any way.”
“I know you’re right, Sally; but you must make some allowance for
a feller who has been so long at sea, and couldn’t keep it, if he
would, as people can ashore. Suppose a hawk was carrying off a
chicken on the Sabbath—wouldn’t you let me shoot it?”
“No, I’m sure I wouldn’t; but if an eagle was carrying off a baby, I
would.”
This was the first and only time Ben ever took the gun down on
the Sabbath. They made it a day of rest.
They had some good books, and one Sally’s mother had given her,
which she was very fond of reading, called “Hooks and Eyes for
Christian’s Breeches.” It was a queer title, but a very good book. In
those days people did not wear suspenders, but kept their breeches
up by buttoning the waistband, or by a belt. Where people were
well-formed, and had good hips, they would keep up very well; but
when they were all the way of a bigness, or were careless and didn’t
button their waistbands tight, they would slip down; so some had
hooks and eyes to keep them up, and prevent this by hooking them
to the waistcoat. Thus this book was designed for those slouching,
careless Christians who needed hooks and eyes to their breeches,
and were slack in their religious duties.
CHAPTER XVIII.
With the aid of the glass he saw them land, and Ben carry Sally to
the house in his arms.
“She’s fainted with fright, poor thing; it’s a rough beginning for
her,” said the widow.
“He only wants to get her to the fire; there’s nothing the matter
with her but a good soaking.”
Sally had washed her supper dishes, and Ben was pulling off his
boots, when the door was opened, and in walked the party. It was a
most joyful surprise to the new-married couple.
“Indeed, Sally, you know I never lacked for courage, only for
strength. You must needs think I had a strong motive.”
But, of all the group, none seemed more delighted than John. He
stared at the log walls, looked up the chimney, capered round the
room with Sailor, and finally getting up in Ben’s lap, put both arms
round his neck, and fairly cried for joy.
“I shot two seals the other day, on the White Bull; and within a
week I’ve killed fifty birds, of all kinds.”
“Won’t you ask father to let me come on and stay a little while,
and go gunning? O, I do miss you so!”
The moment Sailor saw the gun taken down, he was all ready: so
perfectly was he trained, that when it was not desirable he should
play, he would lie still till the gun was fired, and then bring in the
game.
“How I should like to be on here in the daytime!” said John. “Do
you know, Ben, I was never here in all my life before?”
“Why, Sally,” said her mother, “how did you get over in that
dreadful squall? We were all watching you, and felt so worried!
Wasn’t you frightened almost to death?”
“No, mother, I wasn’t much frightened; but I was terrible cold, and
wet all through. I never saw anything look so good, in all my life, as
this great fireplace did, for Ben made a roaring fire in it; and I’m just
as happy and contented as I can be.”
“It was such a pleasant night,” said he, addressing the captain, “I
told Hannah we’d take a run down to your house; and when I found
you’d come over here, I thought I’d take your gunning float and
follow suit.”
“Well, I wanted to; but she ain’t much of a water-fowl, and was
afraid to come in a tittlish gunning float, and said she’d stay and visit
Captain Rhines’s girls; but she sends her love to you, and says if
she’d known I was coming, she’d sent you over a bag of apples.”
“How this does carry a body back!” said the widow; “it don’t seem
but t’other day since I was living in a log house; and how much I’ve
been through since then!”
They then went all over the house, and down cellar.
“Well,” said Uncle Isaac, “I did the best I could; but I think Sam
beat the whole of us. I should be glad to swap my fireplace and
chimney for that, and give a yoke of oxen to boot.”
“Yes, mother.”
“Well, the hawks carried off three of ’em; and I meant to brought
the rest over to you, but Sam said they wouldn’t lay much this
winter; you’d have to buy corn, and you’d better have ’em in the
spring. But I’ve brought you over a pillow-case full of flax.”
“While I,” said Uncle Isaac, “am all the one that’s come empty-
handed; but I know what I’ll do; I’ll give you a pig, and Ben can get
him next time he comes off.”
John now came in, bringing five ducks, that he had shot.
“He’s just like the rest of us, Ben,” said his father: “I believe it runs
in the breed of us to shoot.”
“Let him come over here, and stay a day or two, and gun with
me.”
“Well, it’s just as his mother says; I’m at home so little, I don’t
interfere with her concerns; she’s cap’n; I’m only passenger.”
“But you’re going to be at home all the time now; and I should
like to give up my authority.”
“By the way, Ben, I’ve had a letter from Mr. Welch; he says large,
handsome masts, bowsprits, and spars are in great demand; that he
can find a market in Boston and Salem, in the spring, for all you can
send him.”
“I’m going to cut small spars directly, father; but I want snow to
fall the large ones on, else I shall have to bed them with brush, for
fear of breaking them.”
“He says that the war in Europe is throwing all the carrying trade
into the hands of neutrals; that now we’ve got our government
going, it’ll be snapping times; and that while they’re all fighting like
dogs over a bone, we can run off with the bone; and if I want to try
a voyage, he has a vessel for me.”
“Well, you’re not going,” said his wife; “you’ve been enough, and
you’ve done enough. If Ben could afford to give up going to sea, in
the prime of life, for the sake of Sally, I’m sure you can, in your old
age, for the sake of Betsey; and you belong to me for the rest of
your life.”
“Old!” said the captain, dancing over the room; “I don’t feel a bit
old. I should like a little cash, just to fix up the buildings a little, buy
that timber lot that joins the rye field; and then”—with a comical
look at his wife—“I should like to do a little more for the minister. I
should be so thankful, sometimes, if somebody would come in that
could talk about anything else than some old horse, or cow, or
sheep that’s got the mulligrubs!”
“Father,” said John, as they were preparing to go, “why can’t I stay
now?”
“Let him stay,” said Uncle Isaac, who, from instinct, always took
the part of the boys; “I’ll go over with you.”