Re: Print Stream Manipulation:
- From: "Ingo R. Homann" <ihomann_spam@xxxxxx>
- Date: Tue, 27 Feb 2007 09:37:16 +0100
Hi,
Lea0x.Diz@xxxxxxxxx wrote:
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?
Perhaps the class java\text\MessageFormat might be useful for you?
Ciao,
Ingo
.
- Follow-Ups:
- Re: Print Stream Manipulation:
- From: Lew
- Re: Print Stream Manipulation:
- References:
- Print Stream Manipulation:
- From: Lea0x . Diz
- Print Stream Manipulation:
- Prev by Date: Re: Removing java operating files
- Next by Date: Re: Print value of p from the infinite series
- Previous by thread: Print Stream Manipulation:
- Next by thread: Re: Print Stream Manipulation:
- Index(es):
Relevant Pages
|