©LS Complete the following code for a StringBuilder as instr…
©LS Complete the following code for a StringBuilder as instructed in the line comments.©LS Be conscious of the type of object you’re dealing with, which in turn dictates the method(s) you’re using.©LS String title = “President”, name = “Jack kennedy”, country = “United States”; //©LS //©LS Create a StringBuilder object called correctName and send it name.©LS //©LS Capitalize the ‘k’ in “Kennedy”.©LS Cannot use toUpperCase() or deleteCharAt(). ©LS //©LS Replace “Jack” with “John”.©LS //©LS Insert the title and a space (think concatenate w/symbol).©LS //©LS Append ” was the 35th President of the ” to the object.©LS //©LS Append the country and a period.©LS //©LS Print the object using an implicit call to toString().©LS /* ©LS Use the StringBuilder object to call its toString() explicitly, then call split() * to tokenize the String version of the StringBuilder object into an array called message.©LS * Use a space as the delimiter or separator.©LS This is all one Java statement.*/ //©LS Code the header for an enhanced for to print the tokens from the message array.©LS The variable to hold each token is called word. { System.out.(“%n%s”, ); //©LS Fill-in the correct method to print. //©LS Fill-in the correct argument.}//©LS END enhanced for