Question: makeString String makeString(String start, String sep. String end) Returns a string representation of this string list that begins with start and ends with end, with
makeString String makeString(String start, String sep. String end) Returns a string representation of this string list that begins with start and ends with end, with every string in the string list by sep. Here is an example, assuming list refers to an empty StringList: list.append("a"); list.append("b"); list.append("c"); String result = list.makeString("-", "!", "#"); System.out.println(result); The output would be: -albic# Parameters: start - specified starting string sep-the specified separator string end - the specified ending string Returns: a string representation of this string list that begins with start and ends with end, with every string in the string list separated by sep
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
