Hi,

i cannot understand your first question about getting null.
but regarding converting int[] to a string you can use StringBuffer (or
better to use StringBuilder) and append the int values to it in a loop.

samer.

On Sun, Sep 25, 2011 at 1:38 PM, mandy <[email protected]> wrote:

> String[] test(String p[])         //method
> You will pass a string from main class.
> So here this method will accept a string and then return a string
> type. I am getting null string.
> And another thing is that,i suppose you have array of integer a[10]
> which store int type data,so how you convert this into a string type.
> ex:- a[0]=1,a[1]=2,a[2]=4,a[3]=6
> so it must return a string "1236"
> Tell me someone how to return a string[] type with example in both
> cases.
> Thanks a lot!!!!
>
> --
> You received this message because you are subscribed to the Google Groups
> "google-codejam" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-code?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"google-codejam" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-code?hl=en.

Reply via email to