Java Lab Exercise: String Manipulation
Objective:
Design a program that performs various operations on strings, including input,
concatenation, substring extraction, and case manipulation.
Tasks:
User Input:
● Prompt the user to enter a string.
● Store the input string in a variable.
String Concatenation:
● Concatenate the input string with another string of your choice.
● Display the result.
Substring Extraction:
● Prompt the user to enter the starting index and ending index for substring
extraction.
● Extract and display the substring based on the user's input.
Case Manipulation:
● Convert the original string to lowercase.
● Convert the original string to uppercase.
● Display both the lowercase and uppercase versions.
String Length:
● Calculate and display the length of the original string.
Submission:
Submit your .java file on Blackboard under lab2.