Question: Q 4 ( 4 marks ) : Suppose that s 1 and s 2 are two strings given as follows: String s 1 = Welcome;

Q4(4 marks): Suppose that s1 and s2 are two strings given as follows:
String s1= "Welcome";
String s2= "Welcome to Java and HTML";
a. Write the code that replaces all occurrences of the character 'e' with 'E' in s1
and assign the new string to 53.
b. Write the code that splits s2 into an array of tokens delimited by a space and
assign this array to s4.
Q 4 ( 4 marks ) : Suppose that s 1 and s 2 are

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!