concept series in category java

This is an excerpt from Manning's book Classic Computer Science Problems in Java.
0.7 Part of a series
This is the third book in a series titled Classic Computer Science Problems published by Manning. The first book was Classic Computer Science Problems in Swift, published in 2018, which was followed by Classic Computer Science Problems in Python, published in 2019. In each book in the series, we aim to provide language-specific insight while teaching through the lens of the same (mostly) computer science problems.
If you enjoy this book and plan to learn another language covered by the series, you may find going from one book to another an easy way to improve your mastery of that language. For now, the series covers Swift, Python, and Java. I wrote the first three books myself, because I have significant experience in all of those languages, but we are already discussing plans for future books in the series co-authored by people who are experts in other languages. I encourage you to look out for them if you enjoy this book. For more information about the series, visit https://classicproblems.com/.

This is an excerpt from Manning's book Get Programming with Java.
for-each – iterates over a series of values without any counter or sentinel value
Listing 9.4 This code asks for a list of names, then uses a StringBuilder to prints personalized greetings
1. import java.util.Scanner; 2. public class Greeting { 3. public static void main(String[] args) { 4. Scanner in = new Scanner(System.in); 5. StringBuilder greeting = new StringBuilder(); 6. System.out.println("Enter a series of names separated by commas:"); 7. String names = in.nextLine(); 8. String[] name = names.split(", "); //#A 9. greeting.append("Hello, . How are you today?"); //#B 10. for(int i = 0;i<name.length;i++) { 11. greeting.insert(7, name[i]); //#C 12. System.out.println(greeting); //#C 13. greeting.delete(7,(7+name[i].length())); //#D 14. } 15. } 16. }