X-Received: by 10.129.80.133 with SMTP id e127mr23577523ywb.51.1444066591039; Mon, 05 Oct 2015 10:36:31 -0700 (PDT) X-Received: by 10.182.196.97 with SMTP id il1mr66524obc.12.1444066590962; Mon, 05 Oct 2015 10:36:30 -0700 (PDT) Path: csiph.com!au2pb.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!v79no7741269qge.0!news-out.google.com!z4ni12059ign.0!nntp.google.com!kq10no15727990igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: it.comp.java Date: Mon, 5 Oct 2015 10:36:30 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=94.12.175.195; posting-account=0gGIFwoAAADY_g510ccNBiAgm55kNm68 NNTP-Posting-Host: 94.12.175.195 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <1efdb2b9-da40-496e-8c8c-81bf1057d082@googlegroups.com> Subject: Re: importi giustificati a destra From: 4ndre4 Injection-Date: Mon, 05 Oct 2015 17:36:30 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 1554 X-Received-Body-CRC: 2004898518 Xref: csiph.com it.comp.java:8580 On Monday, 5 October 2015 18:01:43 UTC+1, Gulp=AE wrote: [...] private static String formatNumberWithWidth(int number, int width) { return String.format("%"+width+"d", number); } public static void main(String[] args) { System.out.println(formatNumberWithWidth(2550, 50)); } Trova il modo di ricavare quel width in millimetri.=20