Array-promo

Question

Write a program in Java to accept a name and display the initials of first and middle name and fullĀ  last name.

				
					example 1:
Input: Laxmi Narayan Sharma
output:L N Sharma
example2:
Input:Akash Sharma
output:A Sharma
				
			

Share code with your friends

Share on whatsapp
Share on facebook
Share on twitter
Share on telegram

Code

Coding Store

Leave a Reply

Your email address will not be published. Required fields are marked *