Skip to content

Commit a3c3853

Browse files
Update string_convert.java
1 parent 8829085 commit a3c3853

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

string_convert.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//WAP to take the input of full name and print it in short form
22
//exmaple abhishek sharma>>a.sharma
3-
public class string_convert {
3+
public class string_convert
4+
{
45
String funtn(String name){//take the input of the string
56
String [] st=name.split(" ");//split the string entered using the split function
67
String str=" ";//declare a empty string

0 commit comments

Comments
 (0)