Need to append a String at the Starting or Beginning of a StringBuffer ????
807607Oct 10 2006 — edited Oct 10 2006Hi All,
I am having a StringBuffer. for example StringBuffer s = new StringBuffer("kathir");
I like to append a string with the stringbuffer at the starting point.
Input
StringBuffer s = new StringBuffer("kathir");
need to append "raj" before kathir
Output
raj kathir
Is there is any way to do this using StringBuffer. Do we have any functions in StringBuffer which does this ?
Thanks,
J.Kathir