Re: Right-align numbers?

2011-10-21 Thread Sudhakar Abraham
, 12:09 am, Christopher Piggott wrote: > I need to right-align numbers and it doesn't work as I thought: > > NumberFormat fmt = NumberFormat.getFormat("0"); > > String value = fmt.format(10); > > What I expected was "   10" > > How should it w

Right-align numbers?

2011-10-20 Thread Christopher Piggott
I need to right-align numbers and it doesn't work as I thought: NumberFormat fmt = NumberFormat.getFormat("0"); String value = fmt.format(10); What I expected was " 10" How should it work? -- You received this message because you are subscribed to the G