Computer Science, asked by neetipandey2170, 4 months ago



Write the code to retrieve the second last character from str="Data Analysis" in two different ways

Answers

Answered by xnikhilx
0

\huge{\underline{\red{\mathfrak{♡Answer♡}}}}

To extract last n characters, simply print (length-n)th character to nth character using the charAt() method.

▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅

Similar questions