Long description
The output of the code displays 9 lines. The lines are as follows. Line 1. Sentence colon a man a plan a canal panama. Line 2. After append Replacement forward slash append Tail colon a mAN a plAN a cANal pANama. Line 3. Before replace First colon a man a plan a canal panama. Line 4. After replace First colon a mAN, a plan, a canal panama. Line 5. Before replace All colon a man, a plan, a canal panama. Line 6. After replace All colon a mAN, a plan, a cANal pANama. Line 7. Using Matcher method results colon. Line 8. The number of words is colon 7. Line 9. Average characters per word is colon 3.000000
Get Java How to Program, Early Objects, 11th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.