<?xml version="1.0" encoding="UTF-8"?>











<rss version="2.0" xmlns:jf="http://www.jivesoftware.com/xmlns/jiveforums/rss">



<channel>
    <title>Support Forums: Message List - Java sprintf equivalent?</title>
    <link>http://www.theserverside.com</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    
        <generator>Jive Forums Silver 5.5.30 (www.jivesoftware.com)</generator>
    
    <pubDate>Sun, 19 May 2013 13:46:31 -0400</pubDate>


    <item>

        <title>Java sprintf equivalent?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=964</link>

        

        
            <description><![CDATA[<p><span style="font-family: mceinline;">You've probably already figured this out, but you can use String.format() about like C's sprintf...</span></p>...]]></description>
        

        <pubDate>Sun, 04 Dec 2011 18:25:59 -0500</pubDate>

        

        <jf:creationDate>Sun, 04 Dec 2011 18:25:59 -0500</jf:creationDate>
        <jf:modificationDate>Sun, 04 Dec 2011 18:25:59 -0500</jf:modificationDate>
        <jf:date>Dec 4, 2011</jf:date>
        <jf:author>Doug Hurst</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Re: Java sprintf equivalent?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=964</link>

        

        
            <description><![CDATA[<blockquote>In C, the sprintf function will format a string, including integer values to a specific length. for example, you could do sprintf(%i03); and it would show 000 as part of the string. Is there a Java equivalent to this function?</blockquote>...]]></description>
        

        <pubDate>Fri, 25 Aug 2006 14:58:08 -0400</pubDate>

        

        <jf:creationDate>Fri, 25 Aug 2006 14:58:08 -0400</jf:creationDate>
        <jf:modificationDate>Fri, 25 Aug 2006 14:58:08 -0400</jf:modificationDate>
        <jf:date>Aug 25, 2006</jf:date>
        <jf:author>Anjan Bacchu</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Java sprintf equivalent?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=964</link>

        

        
            <description><![CDATA[Thanks for all of the responses. I did find a Class called PrintfFormat on the javasoft site. It works well, you may want to check it out.]]></description>
        

        <pubDate>Tue, 24 Oct 2000 16:43:17 -0400</pubDate>

        

        <jf:creationDate>Tue, 24 Oct 2000 16:43:17 -0400</jf:creationDate>
        <jf:modificationDate>Tue, 24 Oct 2000 16:43:17 -0400</jf:modificationDate>
        <jf:date>Oct 24, 2000</jf:date>
        <jf:author>Christopher Fowler</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Java sprintf equivalent?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=964</link>

        

        
            <description><![CDATA[There is a Java Class that implements this functionality that is made freely available on www.javasoft.com under Java Developers Connection. I gather from the articles that efforts are under way to support such functionality as part of J2SE/J2EE platform...]]></description>
        

        <pubDate>Thu, 19 Oct 2000 08:48:46 -0400</pubDate>

        

        <jf:creationDate>Thu, 19 Oct 2000 08:48:46 -0400</jf:creationDate>
        <jf:modificationDate>Thu, 19 Oct 2000 08:48:46 -0400</jf:modificationDate>
        <jf:date>Oct 19, 2000</jf:date>
        <jf:author>Praveen Coca</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Java sprintf equivalent?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=964</link>

        

        
            <description><![CDATA[You might want to check this out:
<br>
<br><a class="jive-link-external" href="http://sharkysoft.com/software/lava/jprintf/" target="_newWindow">http://sharkysoft.com/software/lava/jprintf/</a>
<br>
<br>]]></description>
        

        <pubDate>Tue, 12 Sep 2000 17:00:22 -0400</pubDate>

        

        <jf:creationDate>Tue, 12 Sep 2000 17:00:22 -0400</jf:creationDate>
        <jf:modificationDate>Tue, 12 Sep 2000 17:00:22 -0400</jf:modificationDate>
        <jf:date>Sep 12, 2000</jf:date>
        <jf:author>Darryl Dawson</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Java sprintf equivalent?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=964</link>

        

        
            <description><![CDATA[In order to solve that we can use the following:
<br>
<br>
<br>NumberFormat nf = NumberFormat.getInstance();
<br>// say we need 3 digits
<br>nf.setMinimumIntegerDigits(3);
<br>System.out.println(&quot;Number 1:&quot;+ nf.format(1));]]></description>
        

        <pubDate>Mon, 11 Sep 2000 12:45:33 -0400</pubDate>

        

        <jf:creationDate>Mon, 11 Sep 2000 12:45:33 -0400</jf:creationDate>
        <jf:modificationDate>Mon, 11 Sep 2000 12:45:33 -0400</jf:modificationDate>
        <jf:date>Sep 11, 2000</jf:date>
        <jf:author>OracleGuru</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Java sprintf equivalent?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=964</link>

        

        
            <description><![CDATA[Hi,...]]></description>
        

        <pubDate>Mon, 11 Sep 2000 12:32:34 -0400</pubDate>

        

        <jf:creationDate>Mon, 11 Sep 2000 12:32:34 -0400</jf:creationDate>
        <jf:modificationDate>Mon, 11 Sep 2000 12:32:34 -0400</jf:modificationDate>
        <jf:date>Sep 11, 2000</jf:date>
        <jf:author>Taras Zhugayevich</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Java sprintf equivalent?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=964</link>

        

        
            <description><![CDATA[No.]]></description>
        

        <pubDate>Fri, 08 Sep 2000 22:01:41 -0400</pubDate>

        

        <jf:creationDate>Fri, 08 Sep 2000 22:01:41 -0400</jf:creationDate>
        <jf:modificationDate>Fri, 08 Sep 2000 22:01:41 -0400</jf:modificationDate>
        <jf:date>Sep 8, 2000</jf:date>
        <jf:author>fengliang wu</jf:author>
        <jf:replyCount>1</jf:replyCount>
    </item>


    <item>

        <title>Java sprintf equivalent?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=964</link>

        

        
            <description><![CDATA[In C, the sprintf function will format a string, including integer values to a specific length. for example, you could do sprintf(%i03); and it would show 000 as part of the string. Is there a Java equivalent to this function?]]></description>
        

        <pubDate>Fri, 08 Sep 2000 15:08:57 -0400</pubDate>

        

        <jf:creationDate>Fri, 08 Sep 2000 15:08:57 -0400</jf:creationDate>
        <jf:modificationDate>Fri, 08 Sep 2000 15:08:57 -0400</jf:modificationDate>
        <jf:date>Sep 8, 2000</jf:date>
        <jf:author>Christopher Fowler</jf:author>
        <jf:replyCount>8</jf:replyCount>
    </item>



</channel>
</rss>

