Computer Science, asked by Tushar38015, 10 months ago

Write a program in Java to extract the last character from a string. Ex: String = Computer. Output: r.​

Answers

Answered by Anonymous
0

Answer:

Given a string str, the task is to print the last character of each word in the string.

Examples:

Input: str = “Geeks for Geeks”

Output: s r sInput: str = “computer applications”

Output: r s

Similar questions