The following text was written to the standard output stream when the StringThing.java program was executed from IntelliJ.
Lengths singerLength =15 sculptorLength =16 painterLength =14 dancerLength =12 selfLength =13 Comma Positions p1 = 7 p2 = 7 p3 = 7 p4 = 6 p5 = 7 Print the first names singer.substring(8,13) = Billie sculptor.substring(8,13) = Camille painter.substring(8,13) = Pablo dancer.substring(8,13) =Troy self.substring(8,13) = Kyra Print the last names singer.substring(0,7) = Holiday sculptor.substring(0,7) = Claudel painter.substring(0,7) = Picasso dancer.substring(0,6) = Bolton self.substring(0,7) = Edwards First names, once again ... Billie Camille Pablo Troy Kyra Last names, once again ... Holiday Claudel Picasso Bolton Edwards Full names, natural style ... Billie Holiday Camille Claudel Pablo Picasso Troy Bolton Kyra Edwards Process finished with exit code 0