Concise Guide to Object Oriented Programming An Accessible Approach Using Java Undergraduate Topics in Computer Science 1st Edition Kingsley Sage - Download the ebook now and read anytime, anywhere
Concise Guide to Object Oriented Programming An Accessible Approach Using Java Undergraduate Topics in Computer Science 1st Edition Kingsley Sage - Download the ebook now and read anytime, anywhere
com
OR CLICK HERE
DOWLOAD EBOOK
https://ebookmeta.com/product/algebraic-graph-algorithms-a-practical-
guide-using-python-undergraduate-topics-in-computer-science-k-erciyes/
ebookmeta.com
ebookmeta.com
https://ebookmeta.com/product/only-the-stains-remain-ross-jeffery/
ebookmeta.com
Anti Catholicism in Victorian England Routledge Library
Editions The Victorian World Norman
https://ebookmeta.com/product/anti-catholicism-in-victorian-england-
routledge-library-editions-the-victorian-world-norman/
ebookmeta.com
https://ebookmeta.com/product/a-concise-history-of-international-
finance-from-babylon-to-bernanke-1st-edition-larry-neal/
ebookmeta.com
https://ebookmeta.com/product/deconstructing-doctoral-discourses-
stories-and-strategies-for-success-1st-edition-deborah-l-mulligan/
ebookmeta.com
https://ebookmeta.com/product/xero-a-comprehensive-guide-for-
accountants-and-bookkeepers-1st-edition-amanda-aguillard/
ebookmeta.com
https://ebookmeta.com/product/the-public-speaking-playbook-3rd-
edition-teri-kwal-gamble/
ebookmeta.com
Architecture Patterns with Python 1st Edition Harry
Percival
https://ebookmeta.com/product/architecture-patterns-with-python-1st-
edition-harry-percival/
ebookmeta.com
Undergraduate Topics in Computer
Science
Series Editor
Ian Mackie
University of Sussex, Brighton, UK
Advisory Editors
Samson Abramsky
Department of Computer Science, University of Oxford, Oxford, UK
Chris Hankin
Department of Computing, Imperial College London, London, UK
Dexter C. Kozen
Computer Science Department, Cornell University, Ithaca, NY, USA
Andrew Pitts
William Gates Building, University of Cambridge, Cambridge, UK
Steven S. Skiena
Department of Computer Science, Stony Brook University, Stony Brook,
NY, USA
Iain Stewart
Department of Computer Science, Science Labs, University of Durham,
Durham, UK
Mike Hinchey
Lero, Tierney Building, University of Limerick, Limerick, Ireland
The publisher, the authors and the editors are safe to assume that the
advice and information in this book are believed to be true and accurate
at the date of publication. Neither the publisher nor the authors or the
editors give a warranty, expressed or implied, with respect to the
material contained herein or for any errors or omissions that may have
been made. The publisher remains neutral with regard to jurisdictional
claims in published maps and institutional affiliations.
Kingsley Sage
Email: [email protected]
Sources https://commons.wikimedia.org/wiki/File:Book_Illustration,_
Jacquard_Weaving_and_Designing,_Falcon_Loom_of_1728,_Figure_12,_
1895_(CH_68766143).jpg (public domain) https://commons.
wikimedia.org/wiki/File:Jacquard.loom.cards.jpg (public domain)
Jacquard’s ideas were a step innovation of previous work by Jacques
de Vaucanson (1709–1782) and others, but Jacquard is usually credited
with creating a commercial scale automated weaving loom that made
use of stored digital data. This idea proved inspirational for others in
the development of computer science. For example, Charles Babbage
used punched cards as a means of input and output for his designs for
the analytical engine—an early calculating device. As all data, whether
numeric, text, image or audio, can be formulated into an equivalent
binary representation, such cards provided a convenient means of
storing data. For example, the number 19 in denary (base 10) can be
converted into binary (base 2).
16 8 4 2 1
1 0 0 1 1
Here 19 = 1 + 2 + 16. Individual letters can be assigned to numeric
values (i.e. the ASCII code set) and thus text can be converted into a
sequence of numbers, and thus binary data. Continuous data can be
“sampled” at regular intervals and those samples can be converted to
numbers and subsequently to binary data.
Source https://en.wikipedia.org/wiki/File:Wartime_picture_of_a_
Bletchley_Park_Bombe.jpg (public domain) https://en.wikipedia.org/
wiki/Colossus_computer (public domain)
This was the start of the era of cryptoanalysis. Colossus is regarded
by many as the world’s first semi programmable electronic computer,
and a faithful recreation of the machine can be viewed today at the UK’s
National Machine of Computing at Bletchley Park.
The post-war years were less kind on Turing, with events leading to
his suicide in 1954. But the development of electronic computers
continued apace in the UK and the US, with the development of
machines such as the Manchester Mk 1 (UK, 1949) and ENIAC (US,
1945). 1952 heralded the arrival of the Ferranti Mk 1 , the world’s first
commercially available general-purpose computer.
All the code examples used in this book are available freely in the on-
line package that accompanies this book.
With that knowledge, it’s time to start writing some programs.
© Springer Nature Switzerland AG 2019
Kingsley Sage, Concise Guide to Object-Oriented Programming, Undergraduate Topics
in Computer Science
https://doi.org/10.1007/978-3-030-13304-7_2
Kingsley Sage
Email: [email protected]
So, we start by creating a class. To do this, press the “New Class” button
on the left-hand panel. Your will be asked for a Class Name. Provide an
alphanumeric name. By convention, Java classes start with a capital
(upper case) letter. They should not start with a number, and there
should not be any spaces in the name. Many experienced programmers
use the “camel caps” style of naming where capital letters are used at
the start of key words e.g. “ MyFirstClass ”, or “ My1stClass ”.
The Class Type should be left as “Class” and this is the BlueJ default.
The BlueJ source code editor will open. Once you have done this an
orange box will appear in the central panel with a hatched marking
through it.
If a class is shown with a hatched marking through it, then it has not
yet been compiled into Java byte code. Pressing the Compile button
will start that process.
Note that BlueJ does produce some sample code when a class is
created. This sample code is not particularly useful, so we will delete
most of it. Just leave the skeleton of the class definition as shown below:
Note carefully the type of curly brackets (often called “braces ”) that
are used in the definition of the class. We will be making a great deal of
use of two types of brackets:
Braces: { and } used in the definition of chunks of code.
Round brackets: ( and ) used in the definition of statements and
method calls.
Now we will add some useful source code to make our first working
program:
If you need to communicate with the host PC, for example to display
something on the screen, or open a file, you do so by interacting with
the System class. There is only ever one System object, and you
do not need to do anything to bring it into existence. You can think of
the System object as a proxy for the JVM.
The final thing to note is the semi-colon at the end of a line of code.
This marks the end of a complete statement of Java code, a bit like the
full stop that we put at the end of a sentence when writing in English.
If you have written everything correctly, you can now press the
Compile button and the source code will be translated into Java byte
code. If you have made an error, the compiler will produce an error
message (a syntax error) and you will need to fix the problem and try to
compile again. When the source code is free from syntax errors and
compiled, you will see the message “Class compiled—no syntax errors”.
Now it’s time to run our first program. To run the program, you will
need to create an instance of MyFirstClass . To do this, right click
the solid orange box on the central panel and select new
MyFirstClass . You can then give the instance of the class a name.
Just use the default name for now. Once you have done that you a red
box will appear on the BlueJ workbench.
The red box is a Java object built from the MyFirstClass class
definition.
A variable that is declared within the class definition, but outside the
scope of any method within that class is referred to
(interchangeably) as an instance variable , a class attribute , and a
field of a class . However, the term “class variable” is not
appropriate. We shall see in a later chapter that class variable refers
to something different. Such a variable is accessible at any point in
the source code within that class. We say that it has scope of the
class.
2.4 Sequence
The notion of sequence from structured programming is simply the
idea that instructions are executed in a given reliable order i.e. from
start to finish. It is up to the programmer to determine what the correct
sequence is to achieve the intended result. This idea contrasts with the
concept of declarative programming, where the user simply states what
their requirements are, and the order of these declarative statements is
unimportant.
The only additional aspect of sequence comes from the procedural
programming paradigm, that adds the notion of a “call stack ”. This
reflects the idea that a larger program can be broken down int smaller
pieces—methods in the case of Java. One method can then call upon
another. This is also the concept behind the program design philosophy
of “task decomposition ” where a large task is broken down into a set of
smaller tasks, until each task is sufficiently simple to be understood and
implemented.
When a method calls upon another method, execution of the calling
method is parked whilst the called method is executed. Once the called
method has completed execution, control passes back to the calling
Exploring the Variety of Random
Documents with Different Content
of a general system of education. I would therefore
recommend that further grants of land be made for that
object, and wherever the lands reserved for the use of schools
are found to be valueless, that the proper officer of the state
be authorized to select others in lieu of them. * * *
"With great respect, your obedient servant,
"JAMES H. PIPER,
"Acting Commissioner.
"HON. ROBERT J. WALKER,
"Secretary of the Treasury."
House Ex. Doc. 9, Vol. II, Twenty-ninth Congress, Second
Session.
12 Ex. Doc., First Session, Thirtieth Congress, Vol. 1, 1847–
48.
13 This statement that congress "granted Oregon two school
sections" calls for explanation. It was only in the Northwest
Territory, subject to the ordinance of 1787 by compact, that
these sixteen sections belonged, as Woodbridge of Michigan
contended, to the states formed out of that territory. Where
other states received them it was by grant of congress.
14 The Secretary urged other reasons for the additional
grants. "Even as a question of revenue," he says, "such grants
would more than refund their value to the government, as
each quarter township is composed of nine sections, of which
the central section would be granted for schools, and each of
the remaining eight sections would be adjacent to that
granted. Those eight sections thus located and each adjoining
a school section, would be of greater value than when
separated by many miles from such opportunities, and the
thirty-two sections of one entire township, with these benefits,
would bring a larger price to the government than thirty-five
sections out of thirty-six, where one section only, so remote
from the rest, was granted for such a purpose. The public
domain would thus be settled at an earlier period, and yielding
larger products, thus soon augment our exports and our
imports, with a corresponding increase of revenue from duties.
The greater diffusion of education would increase the power of
mind and knowledge, applied to our industrial pursuits, and
augment in this way also the products and wealth of the
nation. Each state is deeply interested in the welfare of every
other, for the representatives of the whole regulate by their
votes the measures of the union, which must be more happy
and progressive in proportion as its councils are guided by
more enlightened views, resulting from more universal
diffusion of light and knowledge and education."—Ex. Doc.,
Second Session, Thirtieth Congress, Vol. II, 1848–49.
15 Gwin's Autobiography, Mr. Bancroft's Hist. Cal. VI, 298.
16 I must be pardoned if I once more call attention to the
willful perversion of truth by the talented but unscrupulous J.
Quinn Thornton. In the transactions of the Pioneer Association
for 1874, speaking of the Oregon bill and the school-land
grants: "Up to the time of the passage of this bill, congress
had never appropriated more than the sixteenth section for the
support of common schools; and the late Nathan Dane, LL. D.,
had labored long before he succeeded in inducing the
government to appropriate that portion of the public lands."
The italics are mine: the word "late," to call attention to the
fact that Doctor Dane had been dead for thirty-nine years,
having passed to his reward in 1835, after a useful and
honorable life; the word "that," because in another place
Thornton claims himself to have induced the government to
make this appropriation. It is difficult to deal with such
constant shuffling with the intention to deceive. A different
unintentional error occurred in the course of my investigations,
when, in 1882, I wrote to the Department of the Interior for
information as to the first act of congress reserving the thirty-
sixth section in each township for school purposes, and was
informed by the commissioner that "the act was approved
March 3, 1849 (U. S. Statutes, Vol I, page 154), entitled an act
to establish the Territorial Government of Minnesota." He had
overlooked the fact that the organic act of Oregon, which
passed on the fourteenth of August, 1848, contained the same
appropriation. This was probably because it was in 1849 that
the affairs of the land office were turned over to the interior
department, and he had not searched the previous records.
17 Act of Congress of September 4, 1841.
18 The canal and locks at Oregon City were built out of the
first proceeds of the five hundred thousand acres, when it was
converted to the school fund to prevent its appropriation to
local schemes of minor importance.
19 By act of July, 1864, congress granted to the State of
Oregon, to aid in the construction of a military wagon road
from Eugene to the eastern boundary of the state, alternate
sections of the public lands designated by odd numbers, for
three sections in width on each side of the road, the United
States to share in it as a military post road. The land was to be
sold in quantities at one time of thirty sections on the
completion of ten miles, and within five years, failing which,
the land reverted to the United States. The grant amounted to
one thousand nine hundred and twenty acres per mile for a
distance of four hundred and twenty miles—or more than all
given to the state on its admission by one hundred and fifty
thousand acres. The company was allowed a primary sale of
thirty sections with which to begin surveying. A road was
opened from Eugene to and over the mountains in 1867, which
was little used or useful. In 1873 the land grant was sold to a
San Francisco company, and this immense government gift
passed to private ownership in another state.
GLIMPSES OF LIFE IN EARLY
OREGON.
As we travel through the Willamette Valley with the dispatch and
comfort of a well-equipped railway service, we are quickly forgetting
how our fathers and grandfathers journeyed. Pioneer experiences
and hardships are memories of long ago; another century is
dawning, and we say that "the new is better than the old."
In the early days of the settlement of this state the horse was
the only means of travel, unless one's course lay along the
Willamette, and then it was the canoe with paddles that carried
trappers, explorers, and occasional Hudson's Bay officials on their
journeys. The native grasses were luxuriant and abundant, the
climate mild, and every settler's door stood hospitably ajar.
Journeying was by easy stages and not irksome. It is pleasant to
remember that there was a time when one had time to be leisurely
and greet one's friends in a kindly, simple fashion. Civilization was
gathered within the four walls of Fort Vancouver, on the Columbia
River. Our greatest friend, John McLoughlin, was the chief factor of
all the Hudson's Bay Company's establishments west of the Rocky
Mountains, and children who have been born in the original Oregon
Territory may well "rise up and call him blessed."
The good "old doctor," as he was respectfully and affectionately
called, cheered the hearts of thousands of immigrants by his deeds
of gracious humanity. With a generous hand he furnished provisions,
clothing, cattle, grain, and farming implements, taking in return the
immigrant's word that he would ever be repaid; the word was
sometimes kept and oftentimes broken. Doctor McLoughlin
conducted life at Fort Vancouver as feudal lords of old, and that, too,
with strict military discipline; the coming and going regulated by the
ringing of the great bell. The members of this large household
breakfasted and supped by their own firesides, but dinner was
served in the hall for gentlemen and visitors. All stood while the
doctor said grace, and men of humble birth "sat below the salt."
Distinguished men gathered at this board. Foremost among them we
reckon Douglas, the botanist, to whom the doctor furnished escort
and transportation. As he took his way through the Willamette
Valley, and on to the Rogue River, it became a journey of months.
His investigations covered a wide stretch—the lowly flower by the
trail, the myriads of brilliant blooms on the breeze-swept prairies,
the shrubs and vines of hillside and canyon, and towering
evergreens on lofty mountain heights. In order to study plant life he
watched it from the bursting bud in April showers, through sunny
summer weather, to the autumn maturing of the seed. Be it
remembered that Douglas first made the world acquainted with the
three kingliest products of our forests—the giant spruce of the
Oregon wilderness, the solemn fir of the cloud-drift region, and the
sugar pine of the Sierras. This clever man met with a tragic death in
the Sandwich Islands, for he fell into a pit dug for wild cattle and
was gored to death by a bull.
Geologists searching the distant field, and titled gentlemen
traveling for pleasure, shared the doctor's hospitality, and were given
escort through the beautiful pastoral country. With the ingress of the
Americans Oregon City became the place of importance next to Fort
Vancouver, and when Doctor McLoughlin was called there on
business, he set out in a bateau, manned by French-Canadian
voyageurs, who, clad in their gay national dress, sang gay Canadian
boating songs to the rhythm of the paddles. The doctor sat aloft in
the stern, erect and dignified, dressed in a long blue-cloth coat, with
brass buttons, buff waistcoat and dark trousers, and a gray beaver
hat. The garments were fashioned in London, and the making of
beaver hats has been a lost art these many years. When the doctor
reached Oregon City he clambered up the rocky path and paced the
single street, carrying a gold-headed cane, and with his brilliant blue
eyes and flowing white locks, his was a face and figure never to be
forgotten. This great-hearted man and friend of the pioneers lies by
the side of his wife in consecrated ground, within sound of the Falls
of the Willamette.
We can understand what a sore deprivation the absence of
books and papers was to the pioneers of the "forties." One man in
the Yoncalla Valley, who had accumulated several hundred dollars,
called his children about him and asked if he should build a house to
replace the log cabin, or buy "Harper's Complete Library," consisting
of many volumes bound in "12mo." Be it to their lasting credit, the
books were purchased, carefully read and remembered, and
preserved for succeeding generations.
Another man, troubled lest his children be cut off from civilizing
influences in their frontier life, built and furnished a house at great
expense and in a style that was not equaled for many years nor
within many miles. He lived to see his lands and house swept from
him, through the dishonesty of another, but not before the attractive
home surroundings had served their purpose. This brave man spent
the declining years of trouble and sorrow on the mountain-side
overlooking the fair valley, where once lay his own broad acres, and
no man had ever been turned from his door. The letters written
through all the years of this man's life in Oregon are marvels of style
and composition, and greatly treasured by their fortunate owners.
Especially so are those of his later years, when riper experience and
a keener insight into men and events lent greater force to his pen,
so that a man of great culture and polish once said: "They sound as
if written from a baronial castle, whereas they come from a log
cabin."
On the western slope of the Willamette there was another where
all books and papers were most carefully preserved, so that the third
generation of descendants is now able to read a file of the Oregon
Spectator, published in 1846 and 1847. The paper was placed over a
string stretched across the cabin, until they were all carefully laid by.
An English gentleman, accompanied by a guide and traveling in
pursuit of game and pleasure, once craved food and shelter at the
cabin door. He was cheerfully bidden to enter and partake of the
unvarying fare of boiled wheat and possibly beef, and the earthen
floor and a buffalo robe served as a bed. The gentleman met his
host and hostess in Washington afterward, and when the latter
spoke of the meager entertainment in Oregon, he said: "Ha, but you
gave me the best you had; the Prince of Wales could do no better."
A roomy, comfortable house replaced the log cabin, and its door, too,
stood ajar, and all were welcomed to the kind and simple hospitality.
Young officers from West Point, on first frontier duty, passing to
remote mountain garrisons and out again for brief glimpses of
civilization, had cordial greeting. Some of these died like brave
soldiers on the battle-fields of the civil war. Others attained rank and
distinction in the service, and two at least won the highest honors
ever conferred by an appreciative country.
Every governor and senator of Oregon has claimed the welcome
extended, unless it be the present incumbents, and though the
master and his gentle wife have passed out for the last time, those,
too, would be kindly greeted beneath the old roof. Preacher and
circuit-rider, humbly following in the footsteps of their divine Lord,
students and distinguished statesmen gathered about this fireside.
Best of all were the times when the earliest pioneers honored it with
their presence, and the quaint telling of tales of adventure, privation
and Indian warfare lasted far into the night, and the logs burned low
on the hearth.
The lack of schools was deeply deplored by many of these hardy
pioneers, men and women, though some were more fortunate. Many
remember with affection and respect one who came from her New
England home and most conscientiously taught the fortunate
children entrusted to her care. School days under her wise and kind
guidance, and ofttimes in most picturesque spots, are bright and
happy memories of many men and women today. One family spent
years of happiness and contentment on a lonely sea shore, and were
taught by a governess, while the play-time was spent among the
beautiful groves and watching the waves so full of interest and
mystery. A peaceful happy life, but in their longing for
companionship they fed sugar to two house flies on the window-sill
in stormy weather,—for house flies were not then a pest.
Sometimes the housewife was of another nationality, and
claimed a prior right to this beautiful valley. A judge once traveling
across Tualatin Plains in the winter was belated by a storm and
asked shelter at a trapper's door. He was given a place by the
blazing hearth, and the dusky housewife, busy about the evening
meal, placed before them potatoes, deliciously roasted in the ashes,
venison, bread, butter, milk and tea, while the host interestingly told
of having known Captain Bonneville and his party on the plains, as
well as members of the Rocky Mountain Fur Company. In his
journeys he knew the watershed of the Columbia and Missouri by
heart, and in one night had set traps in both rivers.
One of Oregon's most polished and charming of her earlier
pioneers, was entertained at a frugal board, and in graceful
acknowledgment sent the hostess some soup plates from the
Hudson's Bay store, and a daughter of the house exhibited them to
him forty years afterward. Although he returned to New England to
spend many of the last years of his life, his interest in Oregon never
waned, and during his visits here his reminiscences of early days
were a delight to those who were so fortunate as to hear them.
The first school opened in the original Oregon country for
American children was by Doctor Whitman at the Waiilatpu Mission,
on the Walla Walla River. The school was attended by the children of
missionaries, those who were left orphans, and the children of
immigrants who were belated by winter storms and kept from
entering the Willamette Valley.
Eliza Spalding was born at Lapwai Mission in 1837, and at ten
years of age was sent to Whitman's station in charge of a trusty Nez
Perce woman. These two journeyed alone on horseback three days,
and camped as many nights by the trail. The air was cold on the
table land adjacent to the Snake River, but the child was tenderly
cared for by this faithful woman. Eliza was interpreter, owing to her
thorough knowledge of Nez Perce, but her school-time at the
mission was brief. Fifty years afterward she told of the awful tragedy
that ended the life-work of a great and good man and his wife, and
those others who shared their fate. Half a century had not
obliterated the traces and impression of the horrible crime from the
sensitive mind of her who was a child at the time of the massacre.
A little school established in Polk County, early in the forties laid
claim to the ambitious title of institute. Whether in the spirit of true
democracy, or as a deserving tribute to the great mind that
conceived the possibilities of this western land, and with marvelous
foresight planned the Lewis and Clark expedition, this little log
school house bore the name of the Jefferson Institute. The man who
presided there remembered the lore of earlier years, and equally
well had he treasured the books of that more fortunate time.
Men and women are living who owe a debt of gratitude to John
E. Lyle, and remember with deep affection and respect that he first
pointed out the narrow path that led far afield in the great world of
study and literature of today.
The theme is endless, when we begin to recall the men and
events of other days; much has been written and preserved, and
much lost to the world because the demands of later times were
great, and those who might have recorded faithfully and well went
out into the great beyond without having benefited Oregon's story
by handing down such a record.
MRS. WILLIAM MARKLAND MOLSON.
NOT MARJORAM.
The Spanish Word "Oregano" not the Original of Oregon.
I.
LOUIS LABONTE Senior.
II.
EARLIEST FRENCH PRAIRIE.
III.
AT SCAPPOOSE.
IV.
SPOKANE INDIANS AND INDIAN MYTHS.
On the east side of the falls at about the site of Oregon City the
Indians also made a large village, being nourished by the fishery,
and had among them a great chief. But from the mountains on the
east there came a frightful skookum, who destroyed the entire
village and even the old chieftain and all the people, except the
chief's wife and her unborn son.
The woman desiring that her son should be great and strong,
took him after his birth to the various streams or lakes that were
haunted by Tomaniwus spirits, and bathed him in the waters. From
these he absorbed the strength of the water and of the spirits, and
in consequence, grew prodigiously. In the course of time, he
returned to the old village where he found his mother, and looking
about the lodge, he began to ask her what were the various articles
that he saw. She replied: "This is the spear with which your father
used to catch the salmon; and this is the tomahawk with which he
used to kill his enemies or to cleave wood; and this is the bow with
which he used to shoot arrows." Taking the tomahawk in his hand,
the boy went out to look abroad but was almost immediately met by
the skookum returning. Thereupon driving his tomahawk into a
gnarly log of wood so as to make a crack, he cried out to the giant,
"If you are so strong, hold this crack open while I take another
stroke;" and into the opening the witless skookum placed his fingers,
but the tomahawk being instantly withdrawn and the crack closing,
was held fast, after which he was easily killed by the boy. Then
taking his father's bow, the youngster went forth and shot an arrow
into the sky, calling out at the same time, "As the arrow falls let
those who died come to life;" and this also was done. Scarcely had
the arrow fallen before the old chief and all his people were seen
coming up the river in their canoes; and landing at the rocks, they
began fishing as if nothing had happened. The wonderful boy being
rejoiced to see his father, whom he had never looked upon before,
went down among the fishermen; but when he was seen by the old
chief, was accosted rudely with the question "Who are you? I am
chief here." And the old chief not knowing his son, accompanied his
rough language with an even rougher blow.
By this the wonderful boy was greatly affected, and thinking that
he could benefit his tribe no more, retired to the rocks above the
falls, and began weeping; and, indeed, wept so copiously that his
tears falling on each side of the falls wore two great holes in the
solid rock, which may be seen there to this day. Finally deciding that
he would no longer live as a man, the boy changed himself into a
fish in order that he might rest in the quiet waters. But he was
disturbed by the roaring of the river to such an extent that he swam
upward as far as the Tualatin. But neither here could he rest on
account of the roaring of the water. He proceeded thence to the
mouth of the Molalla, and of the Pudding River, and of the Yamhill,
successively, but had no resting place, until finally he reached the
clear Santiam. Here he found what he desired, and went to sleep in
a still pool; but being discovered by Tallapus, was changed into a
rock, having the form of a salmon. And this accounts, say the
Indians, for the fact that no salmon that ascend the falls at Oregon
City ever turn aside into any of the streams until they reach the
Santiam; but there seeing the rock, they take a circle and swim near,
and then saluting it with a flip of their tail proceed up the crystal
clear river until they reach the pebbly bars suitable for their
spawning grounds.