Hi the printf function is not implemented in java,
but if you search for "java printf" on
www.google.com and push "I feel
lucky"
you will get a link to a free implementation, otherwise you have to do it
yourself with stringconcatenation
Best regards
Lars Bo Hansen
"somez72" <somez72@chollian.net> wrote in message
news:9i24lk$7b6$1@news1.kornet.net...
> Hi,all
> I want to disply string with specified format.
>
> for example in c
> char * string_variable1 = "abc";
> char * string_variable2 = "def";
> int int_variable = 5;
>
> printf ( "%20s %20s %05d" , string_variable1 , string_varible2 ,
> int_varialbe ) ;
>
> ====> abc def
> 00005
> |space for 20 character |space for 20 character | five
> digit for integer variable
>
> I'm looking for this kind of funciton to make buffering with
specified
> format of some variables.
>
> does it supported in Java?
>
> Best Regards,
> Sun Haeng.
>
>