1. 1Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved. 0132130807 Chapter 9 Strings and Text I/O 2. 2Liang, Introduction…