
Suppose i have one array like... char [] ch={'H','E','L','L','o'};
now i want to convert this arrar into string using recursive function. Then how can i do it???

Hi Friend,
Try this:
import java.util.*;
class ConvertCharArrayToString
{
public static void main(String[] args)
{
StringBuffer buffer=new StringBuffer();
char [] ch={'H','E','L','L','O'};
for(int i=0;i<ch.length;i++){
buffer.append(ch[i]);
}
String str=buffer.toString();
System.out.println(str);
}
}
Thanks

This coding is for java...but i want this in c#
How ro convert char into string using recursive function in c#?? char [] ch={'H','E','L','L','o'};
TO
ans = HELLO
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.