Question: Assume the following declaration appears in a program: Write a statement that changes the str variables first character to L. Declare String str = Tiger
Assume the following declaration appears in a program:![]()
Write a statement that changes the str variable’s first character to “L”.
Declare String str = "Tiger"
Step by Step Solution
3.37 Rating (156 Votes )
There are 3 Steps involved in it
To modify the first character of the string variable str you can use string slici... View full answer
Get step-by-step solutions from verified subject matter experts
