|

07-11-2008, 07:40 AM
Is this kind of a solution u are expecting ???
public static void main( String[] args )
{
String s = "12345";
String result = "";
for ( int i = 0; i < s.length(); i++ )
{
if ( result.length() > 0 )
{
result += " ";
}
result += ( s.charAt( i ) );
}
System.out.println( "Result is =>>> " + result );
}
|