Question: Assume we have already defined a variable of type String called first String, a variable of type String called secondString, and a variable of type
Assume we have already defined a variable of type String called first String, a variable of type String called secondString, and a variable of type char called delim with the following lines of code: String firstString = "?2?"; // 'firstString' can have any String value String secondString = "???"; // 'secondString can have any String value char delim = ???; // 'delim' can have any char value TASK: Create a variable concat that is the concatenation of firstString, delim, and secondString. EXAMPLE: If firstString was "Fast", secondString was "Furious", and delim was '&',concat would be "Fast&Furious". Sample Input: Fast Furious Sample Output: Fast&Furious
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
