100% found this document useful (5 votes)
45 views44 pages

Java Programming 9th Edition Joyce Farrell Test Bankpdf Download

The document provides a test bank for the 9th edition of 'Java Programming' by Joyce Farrell, including questions and answers related to characters, strings, and the StringBuilder. It also includes links to various other test banks and solution manuals for different editions of Java Programming and other subjects. The content consists of true/false, multiple choice, matching, and subjective questions designed to assess knowledge in Java programming concepts.

Uploaded by

deumaroure
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (5 votes)
45 views44 pages

Java Programming 9th Edition Joyce Farrell Test Bankpdf Download

The document provides a test bank for the 9th edition of 'Java Programming' by Joyce Farrell, including questions and answers related to characters, strings, and the StringBuilder. It also includes links to various other test banks and solution manuals for different editions of Java Programming and other subjects. The content consists of true/false, multiple choice, matching, and subjective questions designed to assess knowledge in Java programming concepts.

Uploaded by

deumaroure
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 44

Java Programming 9th Edition Joyce Farrell Test

Bank pdf download

https://testbankfan.com/product/java-programming-9th-edition-
joyce-farrell-test-bank/
We believe these products will be a great fit for you. Click
the link to download now, or visit testbankfan.com
to discover even more!

Java Programming 9th Edition Joyce Farrell Solutions


Manual

https://testbankfan.com/product/java-programming-9th-edition-
joyce-farrell-solutions-manual/

Java Programming 7th Edition Joyce Farrell Test Bank

https://testbankfan.com/product/java-programming-7th-edition-
joyce-farrell-test-bank/

Java Programming 8th Edition Joyce Farrell Test Bank

https://testbankfan.com/product/java-programming-8th-edition-
joyce-farrell-test-bank/

Financial Statement Analysis 13th Edition Gibson Test


Bank

https://testbankfan.com/product/financial-statement-
analysis-13th-edition-gibson-test-bank/
Project Management Achieving Competitive Advantage 4th
Edition Pinto Solutions Manual

https://testbankfan.com/product/project-management-achieving-
competitive-advantage-4th-edition-pinto-solutions-manual/

Childhood and Adolescence Voyages in Development 5th


Edition Rathus Test Bank

https://testbankfan.com/product/childhood-and-adolescence-
voyages-in-development-5th-edition-rathus-test-bank/

Financial Accounting Canadian Canadian 5th Edition


Libby Test Bank

https://testbankfan.com/product/financial-accounting-canadian-
canadian-5th-edition-libby-test-bank/

Medical Language Immerse Yourself 2nd Edition Turley


Test Bank

https://testbankfan.com/product/medical-language-immerse-
yourself-2nd-edition-turley-test-bank/

Essentials of Entrepreneurship and Small Business


Management 7th Edition Scarborough Solutions Manual

https://testbankfan.com/product/essentials-of-entrepreneurship-
and-small-business-management-7th-edition-scarborough-solutions-
manual/
Discrete Event System Simulation 5th Edition Banks
Solutions Manual

https://testbankfan.com/product/discrete-event-system-
simulation-5th-edition-banks-solutions-manual/
Name: Class: Date:

Chapter 07: Characters, Strings, and the StringBuilder


True / False

1. A String variable name is not a simple data type.


a. True
b. False
ANSWER: True

2. The terms “literal string” and “string literal” have different meanings in Java programming.
a. True
b. False
ANSWER: False

3. When you compare Strings with the == operator, you are comparing their values, not their memory addresses.
a. True
b. False
ANSWER: False

4. When you must determine whether a String is empty, it is more efficient to compare its length to 0 than it is to use
the equals () method.
a. True
b. False
ANSWER: True

5. If you try to use an index that is greater than 0 or less than the index of the last position in the StringBuilder
object, you cause an error known as an exception and your program terminates.
a. True
b. False
ANSWER: False

6. The methods islowerCase() and toLowerCase() perform the same tasks.


a. True
b. False
ANSWER: False

7. In a compareTo() method, programmers often do not need specific return values but want to determine if a value is
positive or negative.
a. True
b. False
ANSWER: True

8. When working with Strings, it is necessary to explicitly set a String to null.


a. True
b. False
ANSWER: False

Copyright Cengage Learning. Powered by Cognero. Page 1


Name: Class: Date:

Chapter 07: Characters, Strings, and the StringBuilder


9. Any string value that is input into a program can be used in arithmetic operations.
a. True
b. False
ANSWER: False

10. The StringBuffer class is more efficient than the StringBuilder class because it can execute multiple threads
during program execution.
a. True
b. False
ANSWER: False

Multiple Choice

11. A(n) ____ is a variable that holds a memory address.


a. reference b. Character
c. buffer d. immutable
ANSWER: a

12. A ____ is a class for storing and manipulating changeable data that is composed of multiple characters.
a. Character b. String
c. StringVariable d. StringBuilder
ANSWER: d

13. The methods of the Character class that begin with ____ return a character that has been converted to the stated
format.
a. is b. to
c. for d. in
ANSWER: b

14. The Character class ____ from java.lang.Object.


a. calls b. inherits
c. refers d. spawns
ANSWER: b

15. A literal string is a(n) ____ object.


a. lost b. anonymous
c. class d. named
ANSWER: b

16. Strings and other objects that can’t be changed are known as ____.
a. string constants b. accessor methods
c. immutable d. garbage
ANSWER: c

17. When you declare a variable of a basic, primitive type, such as int x = 10;, the memory address where x is
Copyright Cengage Learning. Powered by Cognero. Page 2
Name: Class: Date:

Chapter 07: Characters, Strings, and the StringBuilder


located holds the ____.
a. location in memory of 10 b. memory address of 10
c. reference to 10 d. value of 10
ANSWER: d

18. The String class ____ method evaluates the contents of two String objects to determine if they are equivalent.
a. equals() b. toString()
c. charAt() d. replace()
ANSWER: a

19. A(n) ____ comparison is based on the integer Unicode values of the characters.
a. integer b. symbol
c. lexicographical d. character
ANSWER: c

20. The method header of the equals() method within the String class is ____.
a. public boolean equals(Strings)
b. private boolean equals(String s)
c. public boolean equals(String s)
d. public boolean equals(Character s)
ANSWER: c

21. When the String class ____ method is used to compare two Strings, it provides additional information to the user
in the form of an integer value.
a. toString() b. compareTo()
c. equals() d. equalsIgnoreCase()
ANSWER: b

22. The ____ method returns the length of a String.


a. getSize() b. getLength()
c. size() d. length()
ANSWER: d

23. The ____ method allows you to replace all occurrences of some character within a String.
a. substring() b. toString()
c. replaceCharacter() d. replace()
ANSWER: d

24. The ____ method converts any object to a String.


a. convertString() b. toString()
c. replace() d. substring()
ANSWER: b

25. To convert a String to an integer, you use the ____ class, which is part of java.lang and is automatically imported

Copyright Cengage Learning. Powered by Cognero. Page 3


Name: Class: Date:

Chapter 07: Characters, Strings, and the StringBuilder


into programs you write.
a. StringBuilder b. String
c. Integer d. Convert
ANSWER: c

26. The ____ method takes a String argument and returns its double value.
a. parseString() b. parseInt()
c. parseDouble() d. returnDouble()
ANSWER: c

27. Consider the statement:


int anInt = Integer.parseInt("649");

You can tell that parseInt() is a(n) ____ method because you use it with the class name and not with an object.
a. programmer-defined b. instance
c. static d. immutable
ANSWER: c

28. A StringBuilder object contains a memory block called a _____, which might or might not contain a string.
a. capacity b. buffer
c. reference d. thread
ANSWER: b

29. The creators of Java chose ____ characters as the “extra” length for a StringBuilder object.
a. 12 b. 16
c. 36 d. 48
ANSWER: b

30. The ____ method lets you add characters at a specific location within a StringBuilder object.
a. charAt() b. insert()
c. append() d. setCharAt()
ANSWER: b

31. To alter just one character in a StringBuilder, you can use the ____ method, which allows you to change a
character at a specified position within a StringBuilder object.
a. charAt() b. insert()
c. append() d. setCharAt()
ANSWER: d

32. String oneStr = "Welcome Jim"


String twoStr = "Welcome Joe"

Given the lines of code above, which of the following regionMatches() expressions will result in a value of true?
a. oneStr.regionMatches(8, twoStr, 8, b. oneStr.regionMatches(0, twoStr, 0,
3) 7)
c. oneStr.regionMatches(8, twoStr, 0, d. oneStr.regionMatches(0, twoStr, 8,
Copyright Cengage Learning. Powered by Cognero. Page 4
Name: Class: Date:

Chapter 07: Characters, Strings, and the StringBuilder


3) 3)
ANSWER: b

33. Assume that aName refers to Roger. What is returned by


aName.compareTo("Robert");
a. 0 b. positive number
c. negative number d. false
ANSWER: b

34. Which of the following correctly declares and initializes a String object?
a. new String = Hello b. String greeting == "Hello";
c. String greeting = "Hello"; d. String new = "Hello"
ANSWER: c

35. System.out.println(“Your name is " + yourName);

The above statement is an example of ____, which is used to join Strings.


a. concatenation b. referencing
c. parsing d. buffering
ANSWER: a

36. The ____ class contains standard methods for testing the values of characters.
a. char b. character
c. StringChar d. Character
ANSWER: d

37. The ____ method and the startsWith() method each take a String argument and return true or false if
a String object does or does not end or start with the specified argument, respectively.
a. beginsWith() b. strEnd()
c. endsWith() d. length()
ANSWER: b

38. The String class ____ method is similar to the equals() method. As its name implies, this method does not
consider case when determining if two Strings are equivalent.
a. equalsCase() b. equalsOmitCase()
c. equalsAllCase() d. equalsIgnoreCase()
ANSWER: a

39. A literal string is called a(n) ____.


a. anonymous object b. String variable
c. empty string d. wrapper
ANSWER: a

40. The ____ method requires an integer argument that indicates the position of the character at that position, starting at 0.
a. charAt() b. setCharAt()
Copyright Cengage Learning. Powered by Cognero. Page 5
Name: Class: Date:

Chapter 07: Characters, Strings, and the StringBuilder


c. strAt() d. posChar()
ANSWER: a

Matching

Match each term with the correct statement below.


a. parseDouble()
b. toLowerCase()
c. substring()
d. String variable
e. append()
f. buffer
g. setLength()
h. indexOf()
i. insert()
j. anonymous object
k. immutable
l. concatenation
m. wrapper
n. buffer
o. capacity

41. Returns the lowercase equivalent of the argument


ANSWER: b

42. An unnamed object


ANSWER: j

43. Appending strings


ANSWER: l

44. Determines whether a specific character occurs within a String


ANSWER: h

45. Memory block


ANSWER: n

46. Takes a String argument and returns its double value


ANSWER: a

47. Object that can't be changed


ANSWER: k

48. Add characters to the end of a StringBuilder object


ANSWER: e
Copyright Cengage Learning. Powered by Cognero. Page 6
Name: Class: Date:

Chapter 07: Characters, Strings, and the StringBuilder

49. Add characters at a specific location within a StringBuilder object


ANSWER: i

50. A named object of the String class


ANSWER: d

51. Class or object that wraps around a simpler element


ANSWER: m

52. A memory block


ANSWER: f

53. Length of a buffer


ANSWER: o

54. Change the length of a string in a StringBuilder object


ANSWER: g

55. Takes two integer arguments: a start position and an end position
ANSWER: c

Subjective Short Answer

56. Describe how a string is a reference and how a string comparison is done.
ANSWER: As an object, a String variable name is not a simple data type—it is a reference; that is, a variable that holds
a memory address. Therefore, when you compare two Strings using the == operator, you are not comparing
their values, but their computer memory locations.

57.

In the above code, two strings are evaluated using the equivalency operator. Why can this be a problem, and what other
methods are offered by Java for working with characters and strings?
ANSWER: The problem stems from the fact that in Java, String is a class, and each created String is an object. As an
object, a String variable name is not a simple data type. It is a reference; that is, a variable that holds a

Copyright Cengage Learning. Powered by Cognero. Page 7


Name: Class: Date:

Chapter 07: Characters, Strings, and the StringBuilder


memory address. Therefore, when you compare two String objects using the == operator, you are
comparing not their values but the computer memory locations.
Programmers want to compare the contents of memory locations (the values stored there)
more frequently than they want to compare the addresses of the locations. Fortunately, the creators of Java
have provided three classes that you can use when working with text data; these classes provide you with
many methods that make working with characters and strings easier:
Character - A class whose instances can hold a single character value and whose methods manipulate and
inspect single-character data
String - A class for working with fixed-string data; unchanging data composed of multiple characters

StringBuilder and StringBuffer - Classes for storing and manipulating changeable data composed
of multiple characters

58. Describe how a programmer would use the two types of Character class methods (those that begin with “is” and
those that begin with “to”) for testing the values of characters.
ANSWER: The methods that begin with “is”, such as isUpperCase(), return a Boolean value that can be used in
comparison statements; the methods that begin with “to”, such as toUpperCase(), return a character that
has been converted to the stated format.

59. Explain what is needed to declare a String variable and provide an example.
ANSWER: When you declare a String object, the String itself—that is, the series of characters contained in the
String—is distinct from the identifier you use to refer to it. You can create a String object by using the
keyword new and the String constructor, just as you would create an object of any other type. For example,
the following statement defines an object named aGreeting, declares it to be of type String, and assigns
an initial value of “Hello” to the String:
String aGreeting = new String("Hello");.

60. How is the String class equalsIgnoreCase() method like the equals() method and how would you use it?
Give an example.
ANSWER: The String class equalsIgnoreCase() method is similar to the equals() method. As its name
implies, this method ignores case when determining if two Strings are equivalent. Thus, if you declare a
String as String aName = "Carmen";, then aName.equals("caRMen") is false, but
aName.equalsIgnoreCase("caRMen") is true since the equalsIgnoreCase() method allows
you to test entered data without regard to capitalization. This method is useful when users type responses to
prompts in your programs. You cannot predict when a user might use the Shift key or the Caps Lock key
during data entry.

61. yourCounty = "perry";


yourCounty.equals("Perry");
yourCounty.equalsIgnoreCase("Perry");

Using the above statements, what value will be returned by the equals() method? What will be the value of the
equalsIgnoreCase() method? Explain how the equalsIgnoreCase() method can be useful when users type
responses to prompts in programs.
ANSWER: The String class equalsIgnoreCase() method is similar to the equals() method. As its name
implies, this method ignores case when determining if two Strings are equivalent. Thus, if you declare a
String as String yourCounty = "perry", then yourCounty.equals("Perry")is false,
Copyright Cengage Learning. Powered by Cognero. Page 8
Name: Class: Date:

Chapter 07: Characters, Strings, and the StringBuilder


but yourCounty.equalsIgnoreCase("Perry") is true. This method is useful when users type
responses to prompts in your programs. You cannot predict when a user might use the Shift key or the Caps
Lock key during data entry.

62. String example1 = "";


String example2 = null;
String example3;

There is an important difference between empty Strings and null Strings. Explain the differences and why it is
important when making String comparisons.
ANSWER: The empty String example1 references a memory address where no characters are stored. The null
String example2 uses the Java keyword null so that example2 does not yet hold a memory address.
The unassigned String example3 is also a null String by default. A significant difference between
these declarations is that example1 can be used with the String methods, but example2 and example3
cannot. For example, assuming a String named anotherExample has been assigned a value, then the
comparison string1.equals(anotherExample) is valid, but
example2.equals(anotherExample) causes an error.

63. How can you use String methods to change the case of a string? Provide an example.
ANSWER:
The methods toUpperCase() and toLowerCase() convert any String to its uppercase or
lowercase equivalent. For example, if you declare a String as String aWord = "something";, then
the string “something” is created in memory and its address is assigned to aWord. The statement aWord =
aWord.toUpperCase(); creates “SOMETHING” in memory and assigns its address to aWord. Because
aWord now refers to “SOMETHING,” aWord = aWord.toLowerCase(); alters aWord to refer to
“something”.

64. String greeting = "Welcome back";

Using the above statement, write the length() method that will return the length of the greeting String. Store
the length in an integer named greetingLength.
ANSWER: int greetingLength = greeting.length();

65. String greeting = "Welcome Home";

Using the above String, create the String method to convert the greeting String to all uppercase. Likewise,
create the String method to convert the greeting String to all lowercase.
ANSWER: To convert to uppercase:
greeting = greeting.toUpperCase();

To convert to lowercase:
greeting = greeting.toLowerCase();

66. String aName = "Michael"

Using the above statement, write the length() method that will return the length of the aName String. What value
will the length() method return when executed?
ANSWER: int len = aName.length();

Copyright Cengage Learning. Powered by Cognero. Page 9


Name: Class: Date:

Chapter 07: Characters, Strings, and the StringBuilder


The length() method will return a value of 7.

67. myCounty = "Clark Jackson Scioto"


myCounty.charAt(6)

Using the above code, what will be the value of the charAt() method once the code executes? Explain how the
charAt() method operates.
ANSWER: The charAt() method requires an integer argument that indicates the position of the character that the
method returns, starting with 0. In the above example, myCounty is a String that is examined by the
charAt() method. The value of myCounty.charAt(6) is “J”.

68. What is the purpose of the replace() method? Provide an example.


ANSWER: The replace() method allows you to replace all occurrences of some character within a String. For
example, if String yourName = "Annette";, then String goofyName =
yourName.replace('n', 'X'); assigns “AXXette” to goofyName.

69. yourCounty = "Clark"


yourCounty.startsWith("Cla")

What value will be returned by the startsWith() method? Explain how the startsWith() method deals with case
sensitivity.
ANSWER: The startsWith() method takes a String argument and returns true or false if the String object
does or does not end or start with the specified argument. In this example, String yourCounty =
"Clark" and yourCounty.startsWith("Cla") is true. These methods are case sensitive, so if
String yourCounty had been "clark", the value returned would have been false.

70. What is the purpose of the substring() method and how do you use it?
ANSWER: You can extract part of a String with the substring() method, and use it alone or concatenate it with
another String. The substring() method takes two integer arguments—a start position and an end
position—that are both based on the fact that a String’s first position is position zero. The length of the
extracted substring is the difference between the second integer and the first integer; if you write the method
without a second integer, the substring extends to the end of the original string.

71. import javax.swing.JOptionPane;


public class Practice
{
public static void main(String[] args)
{
String fullName;
char firstLetter;
____
____

}
}

Accepting a String from a user is common practice. Using the above code, write the statements to accept a String
response from a user. Prompt the user with “Enter your name”. Then use the charAt() method to extract the first
character of the String.
Copyright Cengage Learning. Powered by Cognero. Page 10
Name: Class: Date:

Chapter 07: Characters, Strings, and the StringBuilder


ANSWER: fullName = JOptionPane.showInputDialog(null, "Enter your name");
cha = fullName.charAt(0);

72. String firstString = "Oak Maple Pine"


String secondString = "spruce Maple elm"
firstCompare.regionMatches(4, secondString, 7, 5)

Using the above code, what will be the Boolean value after execution of the regionMatches statement? Explain
how the Strings are compared using the regionMatches() method.
ANSWER: The regionMatches() method can be used to test whether two String regions are the same. One
version of the regionMatches() method takes four arguments—the position at which to start in the
calling String, the other String being compared, the position to start in the other String, and the length of the
comparison.
The regionMatches() expression is true. The substring of firstString that starts at position 5 and
continues for five characters is “Maple”; the substring of secondString that starts at position 7 and
continues for five characters is also “Maple”.

73. What is a wrapper and why would you use it?


ANSWER:
A wrapper is a class or object that is “wrapped around” a simpler element; the Integer wrapper class
contains a simple integer and useful methods to manipulate it.

74. How can you change the length of a String in a StringBuilder object?
ANSWER: You can change the length of a string in a StringBuilder object with the setLength() method. The
length of a StringBuilder object equals the number of characters in the String contained in the
StringBuilder. When you increase a StringBuilder object’s length to be longer than the String it
holds, the extra characters contain ‘\u0000’. If you use the setLength() method to specify a length shorter
than its String, the string is truncated.

75. Why would you use the append() method? Provide an example.
ANSWER: The append() method lets you add characters to the end of a StringBuilder object. For example, the
following two statements together declare phrase to hold “Happy” and alter the phrase to hold “Happy
birthday”:
StringBuilder phrase = new StringBuilder("Happy");
phrase.append(" birthday");

76. Strings and other objects that can't be changed are said to be immutable. What does this mean and how does it
relate to values held in memory addresses?
ANSWER: In Java, the value of a String is fixed after the String is created; Strings are immutable, or unchangeable. When
you write someString = "Hello"; and follow it with someString = "Goodbye";, you have neither changed the
contents of computer memory at the address represented by someString nor eliminated the characters
“Hello”. Instead, you have stored “Goodbye” at a new computer memory location and stored
the new address in the someString variable.

77. StringBuilder greeting = new StringBuilder("Hello, John");


char initial = greeting.charAt(7);

Using the above code and the charAt() method, what value will be assigned to the variable initial?
Copyright Cengage Learning. Powered by Cognero. Page 11
Name: Class: Date:

Chapter 07: Characters, Strings, and the StringBuilder


ANSWER: The charAt() method will return a “J”, which is the seventh character in the String “Hello, John” since
the starting index value is 0.

78. StringBuilder greeting = new StringBuilder("Welcome home ");


phrase.insert(13, "Joe");

Using the above code and insert() method, describe how the phrase will appear after the code executes. How does the
insert() method work?
ANSWER: The String will appear as “Welcome home Joe”. The insert() method lets you add characters at a
specific location within a StringBuilder object. The first character in the StringBuilder object
occupies position zero.

79. StringBuilder greeting = new StringBuilder("Welcome");

Use the append() method to add the characters “home” to the end of the StringBuilder object created above.
ANSWER: greeting.append(" home");
(Be sure that the String in double quotes has a blank space at the start. Otherwise, the Strings
"Welcome" and "home" will be appended without a blank space.)

80. StringBuilder greeting = new StringBuilder("Day 1");

Using the above StringBuilder, create a setCharAt() method that will change the “1” to a “2” in the String
"Day 1". Explain how the setCharAt() method operates.
ANSWER: greeting.setCharAt(4, '2');
To alter just one character in a StringBuilder, you can use the setCharAt() method, which allows
you to change a character at a specified position within a StringBuilder object. This method requires two
arguments: an integer position and a character. In the phrase “Day 1”, the greeting.setCharAt(4,
'2'); changes the value 1 to 2.

81. Give a code example of using the equivalence operator ("==") to compare the addresses of two strings where the
comparison will result in the value true. The example should produce output indicating the strings have the same value.
ANSWER: string stringA="Hello";
string StringB="Hello";
if(stringA==stringB)
System.out.println("stringA has the same address value as stringB");

82. What happens when you increase a StringBuilder object's length to be longer than the string it holds? What
happens if you set the length of a string to be shorter than the string it contains?
ANSWER: When you increase a StringBuilder object’s length to be longer than the String it holds, the extra
characters contain ‘\u0000’. If you use the
setLength() method to specify a length shorter than its String, the string is truncated.

Copyright Cengage Learning. Powered by Cognero. Page 12


Random documents with unrelated
content Scribd suggests to you:
Of the Siege of 24
Of thy streets 562
Old King Cole 633-636
On quicksedge 330
"On the seas are 202
"One kiss in two 554
One lovely 307
Or him that Rome 531
Or if Demophoon's 236
Or if she had 235
Or if strewed 542
Or if such 236
Or if the deeds 557
Or if you mind 228
Or made posies 542
Our King fully 16
Our King himself 20
Our King landed 17
Our King rode forth 21
Our King sent into 14
Our King went up 22
Ovid, within his 235

Painter, in lively 325


Pale are my looks 441
Pardened of 320
Perchance, my words 228
Perchance, ye 232
Phœbus had once 323
Poets did feign 444
Poets have still 129
Poitiers and 549
"Possessed with 469
Priests of Apollo 556
Proud is her (bis) 458

Rankle the wound 285


Remember thou the 242
"Rest you still 201
Revoke and call 242
Rich Damask 315
Rich is the 306
Rich statue 532
"Rivers and Grey 469
Rivers unto the 313
"Rivers was wise 469
Rocked in a cradle 283
"Rosamond was fair 465

Sad, all alone, not 425


"Sad Muse! set down 467
Sad was her joy (bis) 460
St. George was seen 22
Say, Cupid, since 330
"Say, gentle friend 309
Scorn not my 456
Seated on marble 294
Seven are the 437
She did her duty 406
She falls upon 401
She feigned a 461
She hath no 559
She kindly takes 401
She scrat[ched] 237
She walks under 405
Shoot forth no 298
Shore's Wife, a 465
Should faith to 240
Should hate his guerdon 240
Should I envy 455
Show me no more 561
Si cœlum patria 416
S' impossibly I 539
Since then among 124
Since thou hast 291
Sing Hymns to 558
Sing me the Rose! 541
"Sith you repose 401
Small was her (bis) 459
Smile not, fair 453
Some in their 189
Some shipboys' 402
Some use the 234
"So did I live 474
So his, which 530
So, Lady, boldly 295
So, Lady, I finding 339
So shall the 230
So that I silly 33
So then was Daphnis 124
Soowthern, I long 531
Strange is this 335
Such is the 314
Sweet are my 457, 458
Sweet Bride, good 136
Sweetheart, my 361
Sweet, I protest 443
"Sweet Laura 327
"Sweet, love me 462
Sweet sang thy 292
"Sweet Youth," 403

Take heed, for thou 36


Take thou not 36
Tall was her 460
"Telling what he 535
Tell me, my dear, 180
Thanked be Jesu! 19
Thanks, gentle 404
That by the 530
That crimson 319
That day wherein 194
That divided 542
That early 537
That have a sore 32
That I myself 545
That instrument 530
That ivory hand 328
That most 542
That Princess, to 562
That spray to 533
That time, fair 434
That whilst she 545
The beast thus 140
The beauty, that 280
The bird of Thrace 192
"The Bishop came 470
"The Bishop home 471
The Blazing Star 310
The blood of fair 314
The Card'nal went 471
The Crow makes 310
The cruel Nero 321
The crystal 438
The Druids 530
The Duke of York 549
The dusky cloud 304
"The elder son 469
The flaming torch 320
The freedom of 539
The Frenchmen threw 21
The Gentiles used 286
The golden 326
The great guns 20
The Grecians 307
The hapless 337
The heavens 316, 426
The heavens begin 331
The heavens yet 132
The Hound, by 184
Th' immortal 316
The Irish I 531
The King at 15
The King to 16
"The Laws do 472
"The lion 468
The little fish 237
The Macedonian 295
The matter of 228
The Merchant 402
The Muse should 543
The night drew 461
The night is 400
The Normands 18
Th' old British 552
The old man 563
The perils which 183
The Phœnix fair 186
The Phocean it 529
The price that I 35
The Primrose 543
"The Queen was 472
The raging sea 190
The red, or white 542
The Ryme nor mars 543
The Sea Nymphs 453
The ship full 558
The silly 464
The snakes 328
The snow-white 329
"The sparrow 554
"The Stage is set 465
The stately lion 194
The stranger, that 236
The swift 281
The toiling 464
The wildest of 530
The World's a City 108
The young man 399
Their course 16
Then as the sun 295
"Then as the wolf 473
"Then, at the 473
Then bethought 14
Then blew the 22
Then cast she 406
Then doubt me not 274
Then gives she 402
Then hadst thou 238
Then more 470
Then said our 19
"Then send me 463
Then she, who 236
Then should my 463
"Then stay, sweet 461
Then though a 339
"Then wilt thou 120
There are no 34
"There both the 122
Therefore boast 559
Therefore buy 228
There shone a 447
Thereto I wish 233
These are no 241
These bracelets 362
These Lyric 552
These waves no 190
These weeping 182
These words I 233
They now to fight 550
They see thy conscience 241
Things of most 364
This done, as they 402
This from the 613
This girdle 363
This heart so 534
This little 363
This modest she 462
This scarf will 361
This Scylla stole 236
This while we are 540
This while our 550
Those ceaseless 532
Those grim and 541
Those parallels 533
Thou didst 237
Thou glorious Sun 196
Thou, merry 290
Thou stranger 282
Though I do part 275
Though in the 540
Though pale my 455
Though they 187
Though we be all 531
Though you be 188
Through his 612
Through thee, not 273
"Thus Farewell, 202
"Thus have I told 474
Thus is the 317
Thus of all as 24
Thus of this 23
Thus Polyphemus 128
Thus sang these 122
Thus still You 539
Thus, through 403
Thus to the sea 403
"Thus tyrant 471
Thy ancient 532
Thy beauty 175
Thy friend in 244
Thy Love, fair 453
Thy Voyages 548
Till to that 556
TIMANTES, when he 339
"Time-tyrant Fate 466
"'Tis ever Spring 122
To give that life 278
To hear this talk 456
To him deserving 537
To raise his mean 536
To those that 531
"To Vulcan 535
To whose, the 547
To you, I speak! 234
Tread you the 460
True are my (bis) 457
Trust not a man 235
Turned to a stone 277
Two winds, one 308

Unbare that 333


Under this 611
Unto an Image 312
Unto the fountain 179
Unto thy favour 289
Upon Saint 551
Upon this sinful 536
Upon triumphant 280

Warwick in blood 551


Weary was Love 425
"Welcome, sweet 404
Well it thine age 550
Were it cemented 555
Wer't granted me 539
What cruel star 189
"What if we call 121
What lack you? 228
What need I mourn? 178
What now is 559
What should I 360
"What then? What 120
"What therefore shall 120
What though 541
What time fair 181
What time, with 284
When all the 613
When as her lute 439
When as I wish 441
When as my Licia 439
When as my Love 436
When as the 547
When Chloris first 198
When down their 550
When first the 303, 450
When first the sun 303
When GOD made all 108
When he had read 407
When I did part from 301
When I did part, my 338
When I more large 197
When I, of my 336
When M. heard her 406
When no 408
When she had 408
When She was 322
When she was born 197
When Venus first 139
When you appear 287
Where be the Graces? 557
Whereby I see that 33
Wherefore I pray 233
Where Nature hath 546
Which, in his 548
Which heart I let 32
Which I pour forth 183
Which life, I pray 233
Which, six long 242
Which unto gods 242
"Which we have 55
Which vow gave 242
Whilst angry Juno 281
Whilst foaming 306
Whilst this 545
"Whistler Menalcas 120
White art thou 334
White was the 287
Who do not know 187
Who joys in love? 319
Who would a [have] 243
Whole showers of 176
Whom promise 536
Whom the base 537
Whose constancy 537
Whose constantness 229
Whose heart hath 243
Whose trade if 230
Why have ye such 235
Will you hear a 200
"Wilt thou in singing 120
With gold and 325
With lovely 119
With patience 191
With Spanish yew 550
With that bespake 403
With thousand 336
With trickling 400
"Wolf, spare my 123

"Ye groves and 121


"Ye pleasant 121
"Ye Shepherds tell 136
Ye Virgins, that 234
Ye wasteful 185
Years, months 440
Yet do I hope 339
Yet, if I be 534
Yet if thou chance 36
Yet (if you shall 205
Yet in a fine 536
Yet many rivers 541
"'Yet take my son 472
Yet these me not 545
Yet this Critic 545
Yet will you 540
You brave heroic 546
You Fauns and 177
You know I 229
You lofty Pines 177
You that embrace 199
You whom the 174
You whose deep wits 174
Your course 546
Yours was so 556
AN
ENGLISH GARNER
INGATHERINGS
FROM OUR
HISTORY AND LITERATURE

Vol. VIII.

John Lydgate.

The Siege of Harfleur and the Battle


of Agincourt, 1415.
Hereafter followeth the Battle of Agincourt and the great Siege of
Rouen, by King Henry of Monmouth, the Fifth of the name; that
won Gascony, and Guienne, and Normandy.

[See Sir Harris Nicolas's History of the Battle of Agincourt, p. 301,


2nd Ed. 1832, 8vo.
OD, that all this world did make
And died for us upon a tree,
Save England, for Mary thy Mother's sake!
As Thou art steadfast GOD in Trinity.
And save King Henry's soul, I beseech thee!
That was full gracious and good withal;
A courteous Knight and King royal.
Of Henry the Fifth, noble man of war,
Thy deeds may never forgotten be!
Of Knighthood thou wert the very Loadstar!
In thy time England flowered in prosperity,
Thou mortal Mirror of all Chivalry!
Though thou be not set among the Worthies Nine;
Yet wast thou a Conqueror in thy time!

Our King sent into France full rath,


His Herald that was good and sure.
He desired his heritage for to have:
That is Gascony and Guienne and Normandy.
He bade the Dolphin [Dauphin] deliver. It should be his:
All that belonged to the first Edward
"And if he say me, Nay!; iwis
I will get it with dint of sword!"
But then answered the Dolphin bold,
By our ambassadors sending again,
"Methinks that your King is not so old,
Wars great for to maintain.
Greet well," he said, "your comely King
That is both gentle and small;
A ton full of tennis balls I will him send,
For to play him therewithal."

Then bethought our Lords all,


In France they would no longer abide:
They took their leave both great and small,
And home to England gan they ride.
To our King they told their tale to the end;
What that the Dolphin did to them say.
"I will him thank," then said the King,
"By the grace of GOD, if I may!"
Yet, by his own mind, this Dolphin bold,
To our King he sent again hastily;
And prayed him truce for to hold,
For Jesus' love that died on a tree.

"Nay," then said our comely King,


"For into France will I wind!
The Dolphin, anger I trust I shall:
And such a tennis ball I shall him send,
That shall bear down the high roof of his hall.

The King at Westminster lay that time,


And all his Lords every each one;
And they did set them down to dine:
"Lordings," he saith, "by St. John!
To France I think to take my way:
Of good counsel I you pray,
What is your will that I shall do?
Shew me shortly without delay!"
The Duke of Clarence answered soon,
And said, "My Liege, I counsel you so!"
And other Lords said, "We think it for the best
With you to be ready for to go;
Whiles that our lives may endure and last."

"Grammercy, Sirs!" the King gan say,


"Our right, I trust, then shall be won;
And I will 'quite you if I may:
Therefore I warn you, both old and young,
To make you ready without delay
To Southampton to take your way
At St. Peter's tide at Lammas; 1st August
For by the grace of GOD, and if I may,
Over the salt sea I think to pass!"

Great ordnance of guns the King let make,


And shipped them at London all at once;
Bows and arrows in chests were take,
Spears and bills with iren [iron] gunstones;
And arming daggers made for the nonce:
With swords and bucklers that were full sure.
And harness [armour] bright that strokes would endure.

The King to Southampton then did ride


With his Lords; for no longer would he dwell
Fifteen hundred fair ships there did him abide,
With good sails and top-castle.
Lords of France our King they sold
For a myllyant [million] of gold as I heard say.
By England little price they told [reckoned],
Therefore their song was "Well a way!"

Between [South]hampton and the Isle of Wight,


These goodly ships lay there at road,
With mastyards across, full seemly of sight.
Over the haven spread abroad:
On every pavis [target] a cross red;
The waists decked with serpentines [cannon] strong.
St. George's streamers spread overhead,
With the Arms of England hanging all along.

Our King fully hastily to his ship yede,


And all other Lords of every degree:
Every ship weighed his anchor in deed,
With the tide to haste them to the sea.
They hoisted their sails, sailed aloft:
A goodly sight it was to see.
The wind was good, and blew but soft:
And forth they went in the name of the Trinity. 7th August

Their course they took toward Normandy,


And passed over in a day and a night.
So in the second morning early,
Of that country they had a sight:
And ever [as] they drew near the coast,
Of the day glad were they all;
And when they were at the shore almost,
Every ship his anchor let fall,
With their tackles they launched many a long boat
And over ha[t]ch threw them into the stream;
A thousand shortly they saw afloat,
With men of arms that lyth did leme [? pleasantly did shine].

Our king landed at Cottaunses [Contances] without delay, It should be


On our Lady's Even [of] the Assumption; Caus.
And to Harflete [Harfleur] they took the way 14th Augus
And mustered fair before the town.
Our King his banner there did 'splay,
With standards bright and many [a] pennon:
And there he pitched his tent adown;
Full well broidered with armory gay.
yg y
First our comely King's tent with the crown,
And all other Lords in good array.

"My brother Clarence," the King did say,


"The towers of the town will I keep
With her daughters and her maidens gay,
To wake the Frenchmen of their sleep."
"'London'," he said, "shall with him meet;
And my guns that lieth fair upon the green;
For they shall play with Harflete
A game of tennis as I ween.
Go we to game, for God's grace!
My children be ready every each one."

For every great gun that there was,


In his mouth he had a stone.
The Captain of Harflete soon anon
Unto our King he sent hastily
To know what his will was to be done,
For to come thither with such a meiny?
"Deliver me the town!" the King said.
"Nay!" said the Captain, "by God and St Denis!"
"Then shall I win it," said our King,
"By the grace of GOD and his goodness,
Some hard tennis balls I have hither brought
Of marble and iren made full round.
I swear, by Jesu that me dear bought,
They shall beat the walls to the ground."

Then said the great gun,


"Hold fellows, we go to game!"
Thanked be Mary and Jesu her son,
They did the Frenchmen much shame.
"Fifteen afore," said "London" then;
Her balls full fair she gan outthrow.
"Thirty" said the second gun, "I will win and I may."
There as the wall was most sure,
They bare it down without nay.
The "King's Daughter" said "Hearken this play!
Hearken Maidens now this tide!
Five and forty we have, it is no nay."
They beat down the walls on every side.

The Normands said, "Let us not abide!


e o a ds sa d, et us ot ab de
But go we in haste, by one assent!
Wheresoever the gunstones do glide,
Our houses in Harfleet are all to rent:
The Englishmen our bulwarks have brent."
And women cried, "Alas that ever they were born!"
The Frenchmen said, "Now be we shent!
By us now the town is forlorn [utterly lost]:
It is best now therefore
That we beseech this English King of grace,
For to assail us no more;
Lest he destroy us in this place.
Then will we bid the Dolphin make him ready,
Or else this town delivered must be."

Messengers went forth by and bye, 10th Se


And to our King came they: 1415.
The Lord Corgraunt certainly, It should
For he was Captain of the place, Lionel Braqu
And Gelam Bowser with him did hie,
With other Lords more and less.
And when they to our King come where,
Full lowly set them on their knee:
"Hail, comely King!" gan they say
"Christ save thee from adversity!
Of truce we will beseech thee
Until that it be Sunday noon: 22nd Se
And if we may not recovered be, 1415.
We will deliver the town."

Then said our King full soon,


"I grant you grace in this tide [time];
One of you shall forth anon,
And the remnant shall with me abide!"
Their Captain took his next way,
And to Rouen fast gan he ride.
The Dolphin he had thought there to find
But he was gone; he durst not abide.

For help the Captain besought that tide


"Harflete is lost for ever and aye;
The walls be beaten down on every side,
That we no longer keep it may."
Of counsel all he did them pray.
"What is your will that I may do?
What is your will that I may do?
We must ordain the King battle by Sunday,
Or else deliver him the town!"
The Lords of Rouen together did rown [whisper];
And bade the town should openly yield.
The King of England fareth as a lion:
We will not meet with him in the field!
The Captain would then no longer abide,
And towards Harflete came he right;
For so fast did he ride
That he was there the same night.

And when he to our King did come, 22nd Septe


Lowly he set him on his knee: 1415.
"Hail, comely Prince!" then did he say,
"The grace of GOD is with thee!
Here have I brought the keys all
Of Harflete that is so royal a city.
All is yours, both chamber and hall;
And at your will for to be."

"Thanked be Jesu!" said our King,


"And Mary his mother truly!

My uncle Dorset, without letting,


Captain of Harflete shall he be.
And all that is within the city
Awhile yet they shall abide,
To amend the walls in every degree
That are beaten down on every side:
And after that, they shall out ride
To other towns over all.
Wife nor child shall not there abide:
But have them forth, both great and small!"
One and twenty thousand, men might see,
When they went out, full sore did weep.

The great guns and ordnance truly


Were brought into Harflete.

Great sickness among our host was, in good fay [faith],


Which killed many of our Englishmen:
There died beyond seven score upon a day;
Alive there was left but thousands ten.
Our King himself into the Castle yede,
And rest him there as long as his will was:
At the last he said, "Lords, so God me speed!
Towards Calais I think to pass."

After that Harflete was gotten, that royal city,


Through the grace of GOD omnipotent;
Our comely King made him ready soon,
And towards Calais forth he went.
"My brother Gloucester veramente
Here will we no longer abide!
And Cousin of York, this is our intent:
With us forth ye shall, this tide!
My Cousin Huntingdon with us shall ride;
And the Earl of Oxenford with you three!
The Duke of Southfolk [Suffolk] by our side
He shall come forth with his meiny!
And the Earl of Devonshire sikerly!
Sir Thomas Harping that never did fail; It should
The Lord Broke that came heartily Thomas Erpi
And Sir John of Cornwall: It should
Sir Gilbert Umfrey that would us avail; Gilbert Umf
And the Lord Clifford, so GOD me speed!
It should
Sir William Bowser, that will not fail; William Bou
For all they will help, if it be need."

Our King rode forth, blessed might he be! ?8th Octobe


He spared neither dale nor down;
It shou
By waters great fast rode he, Somme.
Till he came to the water of [the] Seine.

The Frenchmen threw the bridge adown


That over the water they might not pass.
Our King made him ready then;
And to the town of Turreyn went more and less.
The Frenchmen, our King about becast
With Battles strong on every side;
The Duke of Orleans said in haste
"The King of England shall abide.
Who gave him leave this way to pass?
I trust that I shall him beguile
Full long ere he come to Calais."
The Duke of Bourbon answered soon
And swore by God and by St Denis
And swore by God and by St. Denis
"We will play them every each one,
These Lords of England at the tennis;
Their gentlemen, I swear by St. John!
And archers we will sell them [in] great plenty:
And so will we rid [of] them soon,
Six for a penny of our money."
Then answered the Duke of Bar,
Words that were of great pride:
"By God!" he said, "I will not spare
Over all the Englishmen for to ride,
If that they dare us abide:
We will overthrow them in fere [company],
And take them prisoners in this tide:
Then come home again to our dinner!"

Henry our King that was so good;


He prepared there full royally:
Stakes he let [caused to] hew in a wood,
And then set them before his archers verily.
The Frenchmen our ordnance gan espy.
They that we ordained for to ride
Lighted adown, with sorrow truly;
So on their feet fast gan abide.

Our King went up upon a hill high


And looked down to the valleys low:
He saw where the Frenchmen came hastily
As thick as ever did hail or snow.
Then kneeled our King down, in that stound,
And all his men on every side:
Every man made a cross and kissed the ground,
And on their feet fast gan abide.
Our King said, "Sirs, what time of the day?"
"My Liege," they said, "it is nigh Prime [9 a.m.]"
"Then go we to our journey,
By the grace of Jesu, it is good time:
For saints that lie in their shrine,
To GOD for us be praying.
All the Religious of England, in this time,
Ora pro nobis for us they sing."

St. George was seen over the host:


Of very truth this sight men did see.
Down was he sent by the HOLY GHOST
Down was he sent by the HOLY GHOST,
To give our King the victory.

Then blew the trumpets merrily, 25th Octobe


These two Battles [Armies] together yede.
Our archers stood up full heartily,
And made the Frenchmen fast to bleed.
Their arrows went fast, without any let,
And many shot they throughout;
Through habergeon, breastplate, and bassinet.
An eleven thousand were slain in that rout [company].

Our gracious King, as I well know,


That day he fought with his own hand.
He spared neither high ne low.
There was never King in no land,
That ever did better on a day.
Wherefore England may sing a song:
Laus DEO! may we say;
And other prayers ever among.
The Duke of Orleans, without nay,
That day was taken prisoner.
The Duke of Bourbon also in fere [company]:
And also the Duke of Bar truly.
Sir Bergygaunte he gan him yield;
And other Lords of France many.

Lo, thus our comely King conquered the field,


By the grace of God omnipotent,
He took his prisoners, both old and young,
And towards Calais forth he went.

He shipped there with good intent: [16th N


To Canterbury full fair he passed, 1415.]
And offered to St. Thomas's shrine.
And through Kent he rode in haste;
To Eltham he came all in good time. 22nd N
And over Blackheath, as he was riding, 1415.
Of the city of London he was ware. 23rd N
"Hail, royal city!" said our King, 1415.
"Christ keep thee ever from sorrow and care!"
And then he gave that noble city his blessing
He prayed Jesu it might well fare!
To Westminster did he ride,
And the French prisoners with him also:
And the French prisoners with him also:
He ransomed them in that tide,
And again to their country he let them go.

Thus of this matter I make an end,


To th'effect of the Battle have I gone:
For in this book I cannot comprehend
The greatest battle of all, called the Siege of Rouen.
For that Siege lasted three years and more,
And there a rat was [sold] at forty pence
For in the city the people hungered sore.
Women and children, for [de]falt of meat, were lore [lost];
And some for pain, bare bones were gnawing,
That at their breasts had two children sucking.

Of the Siege of Rouen it to write were pity,


It is a thing so lamentable:
Yet every High Feast, our King, of his charity,
Gave them meat to their bodies comfortable;
And at the last the town wan, without fable.

Thus of all as now I make an end:


To the bliss of heaven, GOD our souls send!

Thus endeth the Battle of Agincourt.


Imprinted at London in Foster lane,
in Saint Leonard's parish,
by me John Skot.

FINIS

You might also like