Question: introduction to java Lab 07: Java Strings Lab Exercise 2 - More String Operations Problem Description: Write a Java program (String Operations2.java) that performs some
Lab 07: Java Strings Lab Exercise 2 - More String Operations Problem Description: Write a Java program (String Operations2.java) that performs some operations on the following strings (String s1 ="Al", String s2 = "Magdi", String s3 = "101"). Compare sl and s2 to find out which one comes first in alphabetical order, Create a new string that is string s2 in the middle of the string s3, Create a new string that is the first char of sl and the last char of s2, Print out the string of length 3 from the middle of string s2. Sample output: adan Magdi comes before Ali [[Magdi]] AM agd
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
