Print Stream Manipulation:
- From: Lea0x.Diz@xxxxxxxxx
- Date: 26 Feb 2007 09:35:53 -0800
Is there any way to specify variable as the width(right-alignment),
say:
<code>
String str = "some string here";
int var = str.length()*2;
System.out.printf("%vars", str);
</code>
I know the code is dead wrong, but just to illustrate my question.
Anybody?
.
- Follow-Ups:
- Re: Print Stream Manipulation:
- From: Ingo R. Homann
- Re: Print Stream Manipulation:
- Prev by Date: Re: Checking input for letters
- Next by Date: Re: Checking input for letters
- Previous by thread: Print value of p from the infinite series
- Next by thread: Re: Print Stream Manipulation:
- Index(es):