normally we can add any string through concat behind the text
but my question is how can we add any string in front of the text?
like i need an out put like this "break Helloworld"
please any one give me an answer.
String objects are immutable i.e. they are not meant to be modified in the way you want. This is why there are StringBuffer and StringBuilder classes...
Ankit Garg wrote:String objects are immutable i.e. they are not meant to be modified in the way you want. This is why there are StringBuffer and StringBuilder classes...
Yes sir i know that string objects are immutable.so can we do that with StringBuffer or StringBuilder classes? i mean that what i asked above
Dhanushanth Dhanu wrote:
normally we can add any string through concat behind the text
but my question is how can we add any string in front of the text?
like i need an out put like this "break Helloworld"
please any one give me an answer.
Did you try with
?
The important is not what you know, but when you know it...