Computer Science, asked by srisha65, 7 months ago

Write a program in java to accept a name and display the initials along with the surname

Answers

Answered by nalini76
1

Answer:

Write a programme in java to accept a name and print only the initials with surname. Split the given sting by space (" ") character. and store into a string array. Now get the first character of each word, except last word, followed by a dot (.)

Similar questions