Question: Write a program that asks the user to enter two Strings, s1 and s2. Display the lengths of s1 and s2. Display the first character
Write a program that asks the user to enter two Strings, s1 and s2. Display the lengths of s1 and s2. Display the first character of s2. Display the concatenation of s1, a space, and s2. Change the characters of s2 to uppercase and display the results. Check to see whether s1 is equal to s2. If the strings are equal ignoring the case, display the message "s1 and s2 are equal". Otherwise, display "s1 and s2 are not equal." Check to see if s1 is a substring of s2. Display the message "s1 is a substring of s2". Otherwise, display "s1 is not a substring of s2." For Java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
