Complete Download (Ebook PDF) Big Java: Early Objects 5th Edition PDF All Chapters
Complete Download (Ebook PDF) Big Java: Early Objects 5th Edition PDF All Chapters
com
https://ebooksecure.com/product/ebook-pdf-big-
java-early-objects-5th-edition/
https://ebooksecure.com/product/ebook-pdf-big-java-early-objects-7th-
edition/
ebooksecure.com
https://ebooksecure.com/product/ebook-pdf-big-java-early-objects-6th-
edition-by-cay-s-horstmann/
ebooksecure.com
https://ebooksecure.com/product/ebook-pdf-starting-out-with-java-
early-objects-5th-edition/
ebooksecure.com
https://ebooksecure.com/product/ebook-pdf-corporate-finance-4th-
edition-by-jonathan-berk/
ebooksecure.com
(eBook PDF) Liberty, Equality, Power: A History of the
American People 7th Edition
https://ebooksecure.com/product/ebook-pdf-liberty-equality-power-a-
history-of-the-american-people-7th-edition/
ebooksecure.com
https://ebooksecure.com/product/ebook-pdf-america-a-concise-history-
volume-2-sixth-edition/
ebooksecure.com
https://ebooksecure.com/download/cultivating-an-understanding-of-
curiosity-as-a-seed-for-creativity-ebook-pdf/
ebooksecure.com
https://ebooksecure.com/product/ebook-pdf-medical-assisting-
administrative-procedures-7th-edition/
ebooksecure.com
https://ebooksecure.com/download/advanced-clinical-naturopathic-
medicine-ebook-pdf/
ebooksecure.com
(eBook PDF) BUSN 3rd Canadian Edition by
Kelly,Mackenzie,Snow
https://ebooksecure.com/product/ebook-pdf-busn-3rd-canadian-edition-
by-kellymackenziesnow/
ebooksecure.com
vi Preface
Appendices
Many instructors find it highly beneficial to require a consistent style for all assign-
ments. If the style guide in Appendix I conflicts with instructor sentiment or local
customs, however, it is available in electronic form so that it can be modified.
A. The Basic Latin and Latin-1 Subsets F. Tool Summary
of Unicode G. Number Systems
B. Java Operator Summary H. UML Summary
C. Java Reserved Word Summary I. Java Language Coding Guidelines
D. The Java Library J. HTML Summary
E. Java Syntax Summary
Web Resources
This book is complemented by a complete suite of online resources. Go to www.wiley.
com/college/horstmann to visit the online companion sites, which include
Go to wiley.com/go/
javacode to download
a program that dem-
onstrates variables
and assignments.
provides complete programs for FULL CODE EXAMPLE Some people call this loop count-controlled. In con-
trast, the while loop of the preceding section can be
students to run and modify.
Go to wiley.com/go/
javacode to download
a program that
called an event-controlled loop because it executes
uses common loop until an event occurs; namely that the balance reaches
algorithms. the target. Another commonly used term for a
count-controlled loop is definite. You know from
the outset that the loop body will be executed a
definite number of times; ten times in our example.
In contrast, you do not know how many iterations it
takes to accumulate a target balance. Such a loop is
Annotated syntax boxes called indefinite. You can visualize the for loop as
an orderly sequence of steps.
provide a quick, visual overview
of new language constructs. Syntax 6.2 for Statement
In the same way that there can be a street named “Main Street” in different cities,
a Java program can have multiple variables with the same name.
evaluating proposed solutions, often Now how does that help us with our problem, switching the first and the second
using pencil and paper or other half of the array?
Let’s put the first coin into place, by swapping it with the fifth coin. However, as
artifacts. These sections emphasize Java programmers, we will say that we swap the coins in positions 0 and 4:
int width = 20; Declares an integer variable and initializes it with 20.
int perimeter = 4 * width; The initial value need not be a fixed value. (Of course, width
must have been previously declared.)
String greeting = "Hi!"; This variable has the type String and is initialized with the
Example tables support beginners
string “Hi”. with multiple, concrete examples.
height = 30; Error: The type is missing. This statement is not a declaration
but an assignment of a new value to an existing variable—see These tables point out common
Section 2.2.5.
errors and present another quick
Error: You cannot initialize a number with the string “20”.
reference to the section’s topic.
int width = "20";
(Note the quotation marks.)
int width; Declares an integer variable without initializing it. This can be a
cause for errors—see Common Error 2.1 on page 42.
int width, height; Declares two integer variables in a single statement. In this
book, we will declare each variable in a separate statement.
This means “compute the value of width + 10 1 and store that value in the variable
width 2 ” (see Figure 4).
Progressive figures trace code
In Java, it is not a problem that the variable width is used on both sides of the = sym-
bol. Of course, in mathematics, the equation width = width + 10 has no solution.
segments to help students visualize
the program flow. Color is used
1 Compute the value of the right-hand side consistently to make variables and
width = 30
other elements easily recognizable.
width + 10
40
2 Check condition
for (int counter = 1; counter <= 10; counter++)
{
System.out.println(counter);
counter = 1 }
4 Update counter
for (int counter = 1; counter <= 10; counter++)
{
The for loop neatly groups the initialization, condition, and update expressions
together. However, it is important to realize that these expressions are not executed
Self-check exercises at the together (see Figure 3).
end of each section are designed • The initialization is executed once, before the loop is entered. 1
to make students think through • The condition is checked before each iteration. 2 5
• The update is executed after each iteration. 4
the new material—and can
Write the for loop of the Investment class as a while loop.
spark discussion in lecture.
11.
SELF CHECK
12. How many numbers does this loop print?
for (int n = 10; n >= 0; n--)
{
System.out.println(n);
}
13. Write a for loop that prints all even numbers between 10 and 20 (inclusive).
14. Write a for loop that computes the sum of the integers from 1 to n.
Practice It Now you can try these exercises at the end of the chapter: R6.4, R6.10, E6.8, E6.12.
Optional science and business
exercises engage students with •• Business E6.17 Currency conversion. Write a program
realistic applications of Java. that first asks the user to type today’s
price for one dollar in Japanese yen,
then reads U.S. dollar values and
converts each to yen. Use 0 as a sentinel.
occur, and what to do about them. have to remember the correct syntax
for every data type. String a.length()
good programming practices, instance variable is set to 80,000 and status is set to MARRIED. Then the getTax method is called.
In lines 31 and 32 of TaxReturn.java, tax1 and tax2 are initialized to 0.
and encourage students to be 29 public double getTax()
30 {
Call with
showOpenDialog
method
social context” requirements of the us. Your cell phone has a computer consumed on com- This transit card contains a computer.
inside, as do many credit cards and fare puters, and comput-
Web Resources
http://horstmann.com/codecheck/
CodeCheck “CodeCheck” is a new
online service currently in development
by Cay Horstmann that students can
use to check their homework and to
work on additional practice problems.
Visit http://horstmann.com/codecheck
to learn more and to try it out.
a) The code snippet displays the total marks of all ten subjects.
b) The for loop causes a run-time time error on the first iteration.
c) The code snippet causes a bounds error.
d) The code snippet displays zero.
Class Data
IDCard ID number
CallingCard Card number, PIN
DriverLicense Expiration year
Write declarations for each of the subclasses. For each subclass, supply private instance variables. Leave the
bodies of the constructors and the format methods blank for now.
Acknowledgments
Many thanks to Beth Lang Golub, Don Fowley, Elizabeth Mills, Katherine Willis,
Jenny Welter, Wendy Ashenberg, Lisa Gee, Kevin Holm, and Tim Lindner at John
Wiley & Sons, and Vickie Piercey at Publishing Services for their help with this proj-
ect. An especially deep acknowledgment and thanks goes to Cindy Johnson for her
hard work, sound judgment, and amazing attention to detail.
I am grateful to Suchindran Chatterjee, Arizona State University, Jose Cordova,
University of Louisiana, Udayan Das, DeVry University, James Johnson, Aaron
Keen, California Polytechnic State University San Luis Obispo, Norm Krumpe,
Miami University Ohio, Kathy Liszka, University of Akron, Kathleen O’Brien, San
Jose State University, Donald Smith, Columbia College, Mark Thomas, University of
Cincinnati, Laurie White, Mercer University, Brent Wilson, George Fox University,
and David Woolbright, Columbus State University, for their excellent contributions
to the supplementary materials.
Many thanks to the individuals who reviewed the manuscript for this edition,
made valuable suggestions, and brought an embarrassingly large number of errors
and omissions to my attention. They include:
Eric Aaron, Wesleyan University Guy Helmer, Iowa State Bill Mongan, Drexel University
James Agnew, Anne Arundel University George Novacky, University
Community College Ed Holden, Rochester Institute of Pittsburgh
Greg Ballinger, Miami Dade of Technology Mimi Opkins, California State
College Steven Janke, Colorado College University Long Beach
Jon Beck, Truman State Mark Jones, Lock Haven Derek Pao, City University of
University University of Pennsylvania Hong Kong
Matt Boutell, Rose-Hulman Dr. Mustafa Kamal, University of Katherine Salch, Illinois Central
Institute of Technology Central Missouri College
John Bundy, DeVry University Gary J. Koehler, University of Javad Shakib, DeVry University
Chicago Florida Charlie Shu, Franklin University
Michael Carney, Finger Lakes Ronald Krawitz, DeVry Joslyn A. Smith, Florida
Community College University International University
Christopher Cassa, Norm Krumpe, Miami Robert Strader, Stephen F. Austin
Massachusetts Institute of University Ohio State University
Technology Jim Leone, Rochester Institute Jonathan S. Weissman, Finger
Dr. Suchindran S. Chatterjee, of Technology Lakes Community College
Arizona State University Kevin Lillis, St. Ambrose Katherine H. Winters, University
Tina Comston, Franklin University of Tennessee Chattanooga
University Darren Lim, Siena College Tom Wulf, University of
Lennie Cooper, Miami Dade Hong Lin, DeVry University Cincinnati
College Kuber Maharjan, Purdue Qi Yu, Rochester Institute of
Sherif Elfayoumy, University of University College of Technology
North Florida Technology at Columbus
Henry A Etlinger, Rochester Patricia McDermott-Wells,
Institute of Technology Florida International
University
Every new edition builds on the suggestions and experiences of prior reviewers and
users. I am grateful for the invaluable contributions these individuals have made:
Tim Andersen, Boise State University Elliotte Harold Kai Qian, Southern Polytechnic
Ivan Bajic, San Diego State University Eileen Head, Binghamton University State University
Ted Bangay, Sheridan Institute Cecily Heiner, University of Utah Cyndi Rader, Colorado School
of Technology Brian Howard, Depauw University of Mines
Ian Barland, Radford University Lubomir Ivanov, Iona College Neil Rankin, Worcester Polytechnic
George Basham, Franklin University Norman Jacobson, University of Institute
Sambit Bhattacharya, Fayetteville California, Irvine Brad Rippe, Fullerton College
State University Curt Jones, Bloomsburg University Pedro I. Rivera Vega, University
Rick Birney, Arizona State University Aaron Keen, California Polytechnic of Puerto Rico, Mayaguez
Paul Bladek, Edmonds Community State University, San Luis Obispo Daniel Rogers, SUNY Brockport
College Mugdha Khaladkar, New Jersey Chaman Lal Sabharwal, Missouri
Joseph Bowbeer, Vizrea Corporation Institute of Technology University of Science and
Timothy A. Budd, Oregon State Elliot Koffman, Temple University Technology
University Kathy Liszka, University of Akron John Santore, Bridgewater State
Robert P. Burton, Brigham Young Hunter Lloyd, Montana State College
University University Carolyn Schauble, Colorado State
Frank Butt, IBM Youmin Lu, Bloomsburg University University
Jerry Cain, Stanford University John S. Mallozzi, Iona College Brent Seales, University of Kentucky
Adam Cannon, Columbia University John Martin, North Dakota State Christian Shin, SUNY Geneseo
Nancy Chase, Gonzaga University University Jeffrey Six, University of Delaware
Archana Chidanandan, Rose-Hulman Jeanna Matthews, Clarkson University Don Slater, Carnegie Mellon
Institute of Technology Scott McElfresh, Carnegie Mellon University
Vincent Cicirello, The Richard University Ken Slonneger, University of Iowa
Stockton College of New Jersey Joan McGrory, Christian Brothers Donald Smith, Columbia College
Teresa Cole, Boise State University University Stephanie Smullen, University of
Deborah Coleman, Rochester Institute Carolyn Miller, North Carolina Tennessee, Chattanooga
of Technology State University Monica Sweat, Georgia Institute
Jose Cordova, University of Louisiana, Sandeep R. Mitra, State University of Technology
Monroe of New York, Brockport Peter Stanchev, Kettering University
Valentino Crespi, California State Teng Moh, San Jose State University Shannon Tauro, University of
University, Los Angeles John Moore, The Citadel California, Irvine
Jim Cross, Auburn University Jose-Arturo Mora-Soto, Jesica Ron Taylor, Wright State University
Russell Deaton, University Rivero-Espinosa, and Julio-Angel Russell Tessier, University of
of Arkansas Cano-Romero, University Massachusetts, Amherst
Geoffrey Decker, Northern Illinois of Madrid Jonathan L. Tolstedt, North Dakota
University Faye Navabi, Arizona State University State University
H. E. Dunsmore, Purdue University Parviz Partow-Navid, California State David Vineyard, Kettering University
Robert Duvall, Duke University University, Los Angeles Joseph Vybihal, McGill University
Eman El-Sheikh, University of Kevin O’Gorman, California Xiaoming Wei, Iona College
West Florida Polytechnic State University, San Todd Whittaker, Franklin University
John Fendrich, Bradley University Luis Obispo Robert Willhoft, Roberts Wesleyan
David Freer, Miami Dade College Michael Olan, Richard Stockton College
John Fulton, Franklin University College Lea Wittie, Bucknell University
David Geary, Sabreware, Inc. Kevin Parker, Idaho State University David Womack, University of Texas
Margaret Geroch, Wheeling Jesuit Jim Perry, Ulster County Community at San Antonio
University College David Woolbright, Columbus State
Ahmad Ghafarian, North Georgia Cornel Pokorny, California University
College & State University Polytechnic State University, Catherine Wyman, DeVry University
Rick Giles, Acadia University San Luis Obispo Arthur Yanushka, Christian Brothers
Stacey Grasso, College of San Mateo Roger Priebe, University of Texas, University
Jianchao Han, California State Austin Salih Yurttas, Texas A&M University
University, Dominguez Hills C. Robert Putnam, California State
Lisa Hansen, Western New England University, Northridge
College
Preface iii
Special Features xxii
Chapter 1 Introduction 1
1.1 Computer Programs 2
1.2 The Anatomy of a Computer 3
1.3 The Java Programming Language 6
1.4 Becoming Familiar with Your Programming Environment 8
1.5 Analyzing Your First Program 12
1.6 Errors 15
1.7 Problem Solving: Algorithm Design 16
xv
THE modern world knows little of the beauty and grandeur of ancient
Anshan, the home of Cyrus, or of the province of Fars and its cities.
Mountains shut off from them the hot winds of the Persian Gulf and
of the northern deserts. The high valleys lying between the mountain
ranges that extend across it like huge dikes are of surpassing
loveliness. Romantic woodlands, dells, lakes, canyons, murmuring
brooks, rushing rivers, far vistas, plains, mountains, and hills delight
the soul. In the valleys, flowers perfume the air all the year, and
vegetation, where irrigation is practiced, is luxuriant. On the high hills
and mountain tops winter holds sway during three or more months
and the seasons are well-marked as in the temperate zones. It is the
land of Omar, of Firdusi, and of many lesser poets; the land of an
ancient white race, whose rugged virtues made them lords of much
of the earth, but whose descendants have degenerated by admixture
with lower grades of humanity and have suffered much to maintain
even their own independence.
The celebrated plain of Mervdasht is between two parallel ranges of
mountains, one of which lies to the west between it and the low hot
lands of the gulf-coast and the other to the east between it and the
vale of Murghab, or ancient Anshan. A river comes down from the
northern mountains through the midst of this plain and empties into a
lake. It is a perennial stream, but fordable save in the winter when
the rains fall. It has been variously named, anciently the Araxes, later
the Kur or river of Cyrus, and again the Bendamir. Another river of
less volume but more celebrated, the Pulwar, comes down to join it
through the mountains from northeast table-lands. This passes by
the vale of Murghab, where a little stream of that name, coming from
the east, flows into it. In this vale was ancient Anshan, the capital of
the Achæmenian line of kings, a city also known as Pasargadæ. The
tortuous bed of the Pulwar connects the vale of Murghab with the
valley of Mervdasht, having cut for itself a deep gorge through the
mountains. A royal road, passing through this gorge or canyon,
connected the ancient capital with a more modern city, Persepolis.
Persepolis, or the city of the Persians, ancient Parsa, lay close to the
mouth of the mighty canyon of the Pulwar, where it opened into the
vale of Mervdasht. The city lay principally on the northern banks of
the river. On the southern bank was a great park; and in this on a
plateau extending from the base of low mountains that border the
eastern side of the plain, were the palaces of the Kings of Iran. King
Hystaspis and his great son, Darius, and his grandson, Xerxes, each
erected magnificent palaces of dark-gray marble on this natural
platform. The great size and magnificent architecture of these
buildings were among the wonders of the ancient world. Their
majestic ruins yet testify to the power, the love of art, and the
learning of those masters of men.
King Hystaspis, content to rule Iran as a nominal vassal of Cyrus and
under the shadow of his mighty arm, laid out for himself in the valley
of Merv a new city and there placed his loved friends and retainers.
He brought artisans from Egypt, Canaan, Syria, Phœnicia, and
distant Greece, and built for himself a great palace. It is said that he
or his son formulated a new alphabet for his language and caused
the books of Zoroaster to be translated therein.
Orchards of apple, peach, and apricot, vineyards where grape and
berry grew, fields of vegetables and grain, covered the fertile valley
and its surrounding hills. On the day when the Imperial Guard,
escorting the body of the Great Cyrus, halted on the summit of the
western ridge bounding the valley and looked down upon the
peaceful scene, autumn was touching all with the signs of harvest
and the coming winter-rest. On that day, while the funeral car halted,
Prince Bardya, his sisters, and the Prince of Iran rode forward to a
bluff jutting out from the ridge; and from this position they looked
down into a paradise,—so it seemed to them, weary with dusty roads
and desert lands. There, where the Pulwar entered the plain from the
narrow gorge in the western mountains, Cyrus had drawn up his
Persian patriots to fight a last battle for liberty from the Medean yoke,
having been driven to bay by the vast army of stern old Astyages, his
grandfather. That decisive battle not only gave liberty to his own
province but gave Astyages to him as a prisoner and the crown of
Medea for his own head. From that victory Cyrus had gone forth to
conquer the world. But now, conquered by the last enemy, Death, he
was returning there to his final rest. The heart of the Prince of Iran
was stirred by strong emotions, as he looked across the beautiful
vale. He could see afar the great portico of his father’s palace where,
he knew, his mother stood watching for the coming of her son.
Uncovering his head, he extended his hands towards heaven,
saying:
“To thee, O Ahura-Mazda, Ruler of Heaven, Giver of Life, Lover of
Truth, and Protector, we give thanks! For thou hast brought us
home!”
“Amen and amen!” exclaimed Bardya, uncovering his head.
The Prince of Iran then addressed his companions: “I welcome you
to the home of King Hystaspis. This valley and yonder city are his
property, ceded to him as a home for the Achæmenian family, when
he consented to remove hither from Bactra. I bid you rest at our
palace yonder this night. The road from Parsa to Anshan is rough
and ought to be traveled only by day. My mother is at the door to
welcome you.”
“We gladly accept!” assented Bardya, heartily. “Do I not love that
mother almost as much as you? Do you remember the happy days
when we hunted on yonder hills and swam in the Pulwar and the
Araxes? Do you remember the day we were almost drowned? We
will go to that deep water-hole again to-morrow and swim there as
boys again. Our troopers should rest a day while we send a
message to Cambyses at Anshan to inform him of our coming.”
Athura added: “It will be delightful to accept the hospitality of your
mother. I shall return after going to Anshan and shall stay long with
her and rest. My sister is much in need of rest. The long journey has
made her ill.”
“After we shall have accomplished our mission,” said the Prince of
Iran, “we shall enjoy many pleasant days there. The hunting is good.
We shall enjoy the royal sport!”
“Unless Ahriman interfere!” added Bardya, waving his hand towards
Anshan, where his brother now awaited their coming. “I propose to
stay a month at least. I suppose he awaits us impatiently at Anshan.”
Athura said reprovingly to her brother: “Speak not of the King of
Kings thus! He has sent us courteous messages, even if he would
not await us at Hamadan or march with us here. Perhaps it was best
that he should go on ahead to prepare the tomb and to arrange for
the ceremonies. Be advised, brother! Remember to show him the
deference due to his station. His anger was ever terrible! Now he
has no one to restrain him.”
Bardya laughed and tossed his head, as he answered: “Fear not for
me! I shall treat him with all due respect. Am I not on the ground my
father gave me in his will? The Persian lords will not permit him to
oppress us. When I see that King of Kings, I will demand of him that
he publish the full terms of my father’s will. If he refuse to observe
that—Well, it may be that he will cease to reign!”
The Prince of Iran said nothing, but his countenance was somber.
He feared that the impetuous Bardya would precipitate trouble. He
foresaw civil war.
Descending into the valley, they approached Persepolis. A vast
throng of people came out to meet them and stood on either side of
the road weeping and wailing aloud as the funeral car passed. A
company of guards led by an aged veteran met them at the entrance
of the city.
Prince Darius greeted the leader warmly: “Ho, Orobates, our beloved
High Chamberlain! How fares my royal mother?”
“All hail, Prince of Iran!” cried the stately old man, kissing the
Prince’s cheeks as the latter bent down to greet him. “God’s blessing
of long life and happiness be upon you! How good it is to behold you
once more! Your mother, our most gracious Queen, is well and
awaits you at the palace. She begs that you will prevail upon the
royal Bardya and his sisters to honor her house with their presence.
All things are prepared. The best of the herds, the finest game from
the mountains, the daintiest fruits and flowers,—all are ready!”
“They have consented to honor us, Orobates. Has my mother good
health and is she happy?”
“Excellent health, gracious Prince; but she sighs much for you and
the King.”
“Did Cambyses, the Great King, honor our house with his
presence?”
“He refused our bidding on the plea that he was in haste to reach
Anshan on state business. But he sent a gracious greeting to your
mother.”
The Prince led the caravan into the city, nodding and waving
greeting to many whom he had known when a child. Crossing the
Araxes over a magnificent stone bridge, the cortège marched into
Persepolis and encamped in a great open field on the shore of the
Pulwar. The funeral car was driven into the sacred enclosing wall of
a temple and there rested till a messenger went to Cambyses and
returned.
Leaving the cares of the encampment to subordinates, the Prince of
Iran, accompanied by Gobryas and some of his chief officers,
conducted Bardya and his sisters across the Pulwar over a beautiful
stone bridge of one great arch and through the park to his father’s
palace. The limpid stream, the great oaks, elms, walnuts, and plane
trees, whose foliage was tinged with gold and red, the flowering
shrubs, the fountains, and the greensward, smiled a joyful welcome
to the weary travelers. Broad steps, leading up to the great plateau
or bench on which the palace stood, gleamed white through the tree-
limbs. Slender gray columns adorned the portico. On the stairs stood
a group of women, and among them a stately dame, who waved her
hand in welcome. Prince Darius galloped on ahead to the foot of the
steps and, leaving his horse in charge of an attendant, ran up into
the embrace of his mother.
Age had not greatly affected the beauty of the Queen of Iran nor
dimmed her blue eyes. Her gray hair was gathered in a net at the
back of her head and was encircled by a golden band set with
sparkling gems. Her dress was an ample purple robe reaching to her
feet and encircled at the waist with a silken sash. Its loose sleeves
revealed arms still shapely and adorned with bracelets of gold. The
gracious majesty of her countenance, the sweetness of her smile,
and the soft accents of her voice were celebrated in Iran.
That was an age when wife and mother were not slaves or prisoners.
Recognized as the equal of men, their virtues and loveliness made
homes where men were grown. Not yet had Cambyses, aping the
manners and customs of the dwellers in Mesopotamia, Syria, and
Arabia, degraded women to the seclusion of harems; nor had
custom forbidden women to appear before friends unveiled, though
veils were commonly worn in public places. Polygamy was almost
unknown in Iran, though its practice had crept into Medea. The wife
was queen of the home and ruled in the heart of her husband.
The Prince knelt at his mother’s feet, and her arms encircled his
neck while her lips kissed his brow. “Welcome home, beloved son!”
she exclaimed. “Long days have intervened since you waved
farewell to me from yonder bridge; but no day has passed that I did
not think of you!”
She raised him up and stood proudly at his side, leaning on his arm,
while she welcomed Prince Bardya and his sisters. To Bardya she
said as he bent his knee before her: “The blessing of Ahura-Mazda
be upon you, O Prince of the World! Arise! It is not meet that you
kneel to me! Welcome to the palace of my lord, the King of Iran!”
“Gracious Queen,” replied Bardya as he arose, “I kneel to you as to
my mother! Next to her, who lives only in my memory, do I love and
reverence the mother of my friend, the Prince of Iran. Have we not,
in years past, stood together at your knee and received your
instruction? Now that we are indeed orphans we come to you for
consolation.”
Tears filled the great lady’s eyes. She embraced Athura and
Artistone tenderly; and, leaving the men to the care of her son, she
took the girls with her to her own apartments and personally saw that
they were made comfortable. While they are removing the dust of
the road and enrobing themselves for dinner, we may wander in
spirit through this typical palace of the Achæmenian kings and
observe its grandeur.
From the portico which extended the full breadth of the palace front,
an entrancing view of valley and mountain, of river and park, could
be had. Sixteen slender, fluted, marble pillars supported the massive
wooden roof of the portico. Their capitals were winged bulls; their
bases were bell-shaped and carved to imitate lotus buds. A high,
narrow door gave entrance from the front through the thick stone
walls into a hall, on either side of which were rooms where the
palace-guards had their abode. The hall led into a reception room
fully fifty feet square, whose walls were pierced by a dozen narrow
windows and whose ceiling of heavy carved timbers was upheld by
slender wooden pillars covered with silver plates. The stone walls
were hidden by beaten silver plates and the windows and doors
were hung with tapestries of fine crimson and purple fabrics.
Wooden shutters were fitted to the windows, but were now open to
admit air and light. Later, when winter should come with its rains and
frost, the windows would be closed by semi-transparent oiled silk.
Red and purple rugs lay on the tiled floor, partially covering the
various patterns worked out in colored tiles. A throne, shining with
gold plate, occupied a raised platform at the end of the room
opposite the entrance. Cushioned chairs, divans, and couches,
tables of polished wood, mirrors of polished silver and bronze, lamps
of many patterns fastened to the pillars and walls, and a cabinet of
dark inlaid wood comprised the furniture. The cabinet held a
collection of books, rolls, and tablets, the library and the special
treasure of the King of Iran.
Doors at the right of the throne led into the apartments of the men; at
the left, into the apartments of the women; and, immediately at the
rear, into a small open court, beyond which were the servants’
quarters. Banquets of state were held in the throne room, but
ordinarily the tables were laid in the small open court. The various
apartments were furnished with couches, and with blankets and rugs
of skillful weaving and of that fineness and texture for which the
woven products of Iran have ever been famous. All the
conveniences of an advanced civilization, which power and wealth
could provide or gather from the many nations over which the
Persians held sway, were here. Baths and toilets fed by water piped
from the hills, and drained into the Pulwar below, ornamental
cabinets, containing scents and cosmetics for adorning the person,
wardrobes full of costly dresses made of silk and fine linen, mirrors,
combs, and brushes—even the modern homes of many so-called
civilized people could boast no better.
A narrow stair led up from the inner court to the flat roof, where the
occupants of the palace, reclining on soft divans, under canopies or
sunshades, could pass the warmer hours of the day, breathe the
cool mountain air, and enjoy the lovely scenes. Looking down from it,
one could see the royal stables five hundred paces to the south in
the park, where scores of graceful horses were kept; and farther on
was the inclosure where cattle and sheep, driven in from the
mountain pastures, were ready to furnish the royal table with meat or
milk. A canal led from the Pulwar above the palace through the park
to the stables below and thence into luxuriant gardens where
servants toiled to supply their master’s table with vegetables. Fowls,
dogs, horses, and cattle enlivened the barnyard scene. Servants in
gay tunics, loose, fringed trousers, and with sandaled feet went
hither and thither on their duties. Guards in shining armor walked
their beats through the park or lazily stood leaning on their spears at
the palace steps.
While the guests were removing the dust and stains of travel,
servants busily prepared the banquet. Tables of walnut, plated with
silver and bound together by golden bands fastened with copper
nails, were set in the great audience hall. Platters of beautiful
porcelain or of beaten silver, piled high with fruits and bread, were
placed on them, and plates of silver and cups of gold were also
brought forth. Low seats whereon the guests could either sit or
recline were set in order. A major-domo in gorgeous livery saw that
all things were made ready. Then the guests were called. The men
were seated at one table; the women, at another. Prince Darius sat
at the head of the former; his mother at the head of the latter.
Servants brought on, in regular courses, fish, steaming loads of
venison and fowl, and bountiful supplies of vegetables and pastry.
Water, milk, and wine of Helbon were the drinks, the latter being
used sparingly. With appetites sharpened by a long day’s journey in
the bracing air of the mountains, the guests did full justice to the
viands. While they ate, the soft music of harps, played with
considerable skill by musicians in the court, floated in through the
open doors.
The banquet hour having passed, the officers and nobles returned to
the camp, while Prince Bardya and his sisters accompanied Prince
Darius and his mother to a room adjacent to the dining-hall, used by
the King of Iran when at home as an office. A large fireplace in one
corner of the room was filled with a cheerful blaze. Gathered about
the fire, guests and hosts felt much at home and spent a pleasant
hour in conversation.
“Now that Cambyses passed through your city with scant courtesy,”
Bardya said, somewhat warmed by the wine he had imbibed and by
his genial surroundings, so that he felt called upon to express his
indignation towards his brother, “what think you of such a king?” He
addressed Queen Hystaspis.
“I marvel not at his action,” she replied quietly. “He was never kindly
disposed towards us. But it is not for us to find fault. I should have
met him in person and given the invitation to stop with us. I would
have so done, had I not heard that he believes, with the Medes, that
women have no place in the affairs of men. He passed through our
city in a closed litter, not even deigning to see our messengers. He
made reply through his chamberlain that the King of Kings was
indisposed and pressed for time and would not rest till he should
arrive at his palace in Anshan.”
“He has ever been ill-natured!” continued Bardya, bitterly. “He
believes himself heaven-born! He will end by declaring himself a god
and appointing set times to worship him! What think you the nobles
of Persia will say of his manners? It is said he has determined to
decree a law of polygamy, and, like the Arabs, fill a harem with many