Computer Science, asked by Prosun28, 6 months ago

write a Java code in which my first and last name is input and my full name is output​

Answers

Answered by gouravkuamrverma2
0

Explanation:

fullname(str1) /* str1 is a string */ Step 1: first we split the string into a list. Step 2: newspace is initialized by a space(“”) Step 3: then traverse the list till the second last word. Step 4: then adds the capital first character using the upper function. Step 5: then get the last item of the list.

Similar questions