Insert Character in a String ?

I am trying to insert the following character " / " to my string. It is printing out as 19990923. I want the output to print 1999/09/23

I need some help with this problem. Thanks for any assistance.

String[] s2= eRecord.split(",");

String stkSymbol1 = s2[0];

String stkDate1= s2[1];

// int a = stkDate1.length() ;

// buffer.insert(3," / ");

// System.out.printf("\n%s\n\n" buffer.toString());

System.out.println ("The Date for the last record is : "+ stkDate1); //

[521 byte] By [NevisAce1a] at [2007-11-27 1:52:51]
# 1
What exact problem are you having? What's not working?
jverda at 2007-7-12 1:22:16 > top of Java-index,Java Essentials,New To Java...
# 2
Here are the error i amgetting when i try to compile the program BlueDevil9.java:87: cannot find symbolsymbol : variable bufferlocation: class BlueDevil9System.out.printf("\n%s\n\n", buffer.toString()); ^
NevisAce1a at 2007-7-12 1:22:16 > top of Java-index,Java Essentials,New To Java...
# 3
The error message told you that you have not declare the variable buffer.If you really think you do, check if the declaration inside a conditional statement which is invalid.Post the code with code tags.
rym82a at 2007-7-12 1:22:16 > top of Java-index,Java Essentials,New To Java...
# 4
you can use the format method to do itSystem.format(%4$ty/%4$tm/%4$td, <calmethod>);
fastmikea at 2007-7-12 1:22:16 > top of Java-index,Java Essentials,New To Java...