Computer Science, asked by julie37, 4 months ago

Display your Name using String class.
• Create a String object named country and initialize it with “PAKISTAN”.
a. Determine the length of this word. b. Determine the index of letter ‘S’.
c. Determine the index of “IST”.
d. Determine the last index of letter ‘A’.
e. Convert this String into lowercase.
f. Convert this lowercase String into uppercase.
g. Extract a sub string from the string. (e.g. extract “IST”)
h. Replace the substring with the String of your own choice (e.g. replace “IST” with some other string)
• Reverse a String

Answers

Answered by gadpaylekalyani116
0

Explanation:

my ans is the g hope is this right

Similar questions