Question: Q 4 ( 4 marks ) : Suppose that s 1 and s 2 are two strings given as follows: String s 1 = Welcome;
Q marks: Suppose that s and s are two strings given as follows:
String s "Welcome";
String s "Welcome to Java and HTML;
a Write the code that replaces all occurrences of the character with in s
and assign the new string to
b Write the code that splits into an array of tokens delimited by a space and
assign this array to s
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
