Computer Science Canada Combining characters |
Author: | xHoly-Divinity [ Sat Sep 29, 2007 12:25 pm ] |
Post subject: | Combining characters |
Suppose I had the characters 'a', 'b', and 'c'... Is there any way I can combine these characters into a single variable (i.e. a string). Also, I don't know the number of characters there will be. Thanks |
Author: | StealthArcher [ Sat Sep 29, 2007 12:37 pm ] |
Post subject: | Re: Combining characters |
For loop and append. |
Author: | xHoly-Divinity [ Sat Sep 29, 2007 12:58 pm ] | ||
Post subject: | Re: Combining characters | ||
Could you please elaborate a bit. How would it work for the example 'a', 'b', 'c'? Using StringBuilder, would it be something along the lines of
This is just a representation... how would it actually work? |
Author: | xHoly-Divinity [ Sat Sep 29, 2007 1:13 pm ] |
Post subject: | Re: Combining characters |
Ahhh, you need to create a stringBuffer first. I got it working, thanks ![]() |