STEP 5
mutation1 = words.concat ("\nCome again another day");
This performs a concatnation of a string.
Examples:
"cares".concat("s") returns "caress"
"to".concat("get").concat("her") returns "together"
So in your case, your string will be concatenated to words string and as a result you will get mutation1 as
Rain Rain go away
Come again another day
STEP 6
mutation2 = "Johnny Johnny wants to play";
This is just an assignment of a string to a variable.
STEP 7
mutation3 = mutation2.replace (mutation2.charAt(5), 'i');
Here charAt method finds a character at a given position within a string. So in this case it gets the char at index 5 in mutation 2 first. It's "y". Note indices are started from 0.
and replaces all the occurences of mutation2 by "y", and assign the resultant to mutation3.
STEP 8
mutation4 = mutation3.substring (7, 27);
Substring is used to filterout a part of a string. So in this case the substring started from index 7 will be taken. And the sub string ends from index 27. The string you get will we assigned to the variable "mutation4"
STEP 9
System.out.print ("\'" + mutation1 + "\n" + mutation4 + "\'\n");
Now the easy part. Just print them to console... mutation1 and mutation4 with some new lines.