Question: Let s1 be Welcome and s2 be welcome Write the code for the following statements: a. Replace all occurrences of the character e with E
Let s1 be "Welcome" and s2 be "welcome" Write the code for the following statements: a. Replace all occurrences of the character e with E in s1 and assign the new string to s2 b. Split Welcome to Java and HTML into an array tokens delimited by a space and assign the first two tokens into s1 and s2
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
