<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Formatting Strings for the Java Foundations Junior Associate exam	</title>
	<atom:link href="https://www.selikoff.net/2015/07/11/formatting-strings-for-the-java-foundations-junior-associate-exam/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.selikoff.net/2015/07/11/formatting-strings-for-the-java-foundations-junior-associate-exam/</link>
	<description>Java/J2EE Software Development and Technology Discussion Blog</description>
	<lastBuildDate>Thu, 20 Oct 2022 22:52:37 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
	<item>
		<title>
		By: Artem		</title>
		<link>https://www.selikoff.net/2015/07/11/formatting-strings-for-the-java-foundations-junior-associate-exam/comment-page-1/#comment-309626</link>

		<dc:creator><![CDATA[Artem]]></dc:creator>
		<pubDate>Thu, 20 Oct 2022 22:52:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/?p=6031#comment-309626</guid>

					<description><![CDATA[Interestingly enough, but it seems that printf interpreter in Java doesn&#039;t leverage &quot;%i&quot; as a format specifier, whereas the latter is aliased to &quot;%d&quot; in C(stdio.h). <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f937-200d-2640-fe0f.png" alt="🤷‍♀️" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Also, it does seem that &quot;%n&quot; is treated as format specifier in Java for inserting a new line character compared to completely different intention that it follows in C. 

    int *number = new int();
    std::printf(&quot;Today%n - &quot;, number); // Today -
    std::printf(&quot;consists of %i letters\n&quot;, *number); // consists of 5 letters]]></description>
			<content:encoded><![CDATA[<p>Interestingly enough, but it seems that printf interpreter in Java doesn&#8217;t leverage &#8220;%i&#8221; as a format specifier, whereas the latter is aliased to &#8220;%d&#8221; in C(stdio.h). 🤷‍♀️ Also, it does seem that &#8220;%n&#8221; is treated as format specifier in Java for inserting a new line character compared to completely different intention that it follows in C. </p>
<p>    int *number = new int();<br />
    std::printf(&#8220;Today%n &#8211; &#8220;, number); // Today &#8211;<br />
    std::printf(&#8220;consists of %i letters\n&#8221;, *number); // consists of 5 letters</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jeanne Boyarsky		</title>
		<link>https://www.selikoff.net/2015/07/11/formatting-strings-for-the-java-foundations-junior-associate-exam/comment-page-1/#comment-266862</link>

		<dc:creator><![CDATA[Jeanne Boyarsky]]></dc:creator>
		<pubDate>Fri, 26 Feb 2021 10:45:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/?p=6031#comment-266862</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.selikoff.net/2015/07/11/formatting-strings-for-the-java-foundations-junior-associate-exam/comment-page-1/#comment-266843&quot;&gt;Răzvan MOCANU&lt;/a&gt;.

@Răzvan thanks. This is what my writing looks like without editing. I fixed all except point 2. I&#039;m not saying they are aligned at the decimal place. I&#039;m saying there are three decimal places]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.selikoff.net/2015/07/11/formatting-strings-for-the-java-foundations-junior-associate-exam/comment-page-1/#comment-266843">Răzvan MOCANU</a>.</p>
<p>@Răzvan thanks. This is what my writing looks like without editing. I fixed all except point 2. I&#8217;m not saying they are aligned at the decimal place. I&#8217;m saying there are three decimal places</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Răzvan MOCANU		</title>
		<link>https://www.selikoff.net/2015/07/11/formatting-strings-for-the-java-foundations-junior-associate-exam/comment-page-1/#comment-266843</link>

		<dc:creator><![CDATA[Răzvan MOCANU]]></dc:creator>
		<pubDate>Thu, 25 Feb 2021 17:06:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/?p=6031#comment-266843</guid>

					<description><![CDATA[Hi Jeanne! Thank you for posting this material online. I&#039;ve noticed a few small mistakes in the article as I read it, and I thought you might want to fix them.

1. &quot;This post cover a bit about %f (decimal)...&quot; should of course be &quot;This post covers...&quot;;
2. The rendering of the output of the first example unfortunately does not show that the numbers are actually aligned at the decimal place;
3. &quot;From this point, on you do need...&quot; should be &quot;From this point on, you do...&quot;;
4. &quot;...followed by a space and then followed by a boolean...&quot; should be &quot;...followed by a space and then followed by an integer number...&quot;;
5. In the summary, &quot;%2 for new line&quot; should of course be &quot;%n for new line&quot;.]]></description>
			<content:encoded><![CDATA[<p>Hi Jeanne! Thank you for posting this material online. I&#8217;ve noticed a few small mistakes in the article as I read it, and I thought you might want to fix them.</p>
<p>1. &#8220;This post cover a bit about %f (decimal)&#8230;&#8221; should of course be &#8220;This post covers&#8230;&#8221;;<br />
2. The rendering of the output of the first example unfortunately does not show that the numbers are actually aligned at the decimal place;<br />
3. &#8220;From this point, on you do need&#8230;&#8221; should be &#8220;From this point on, you do&#8230;&#8221;;<br />
4. &#8220;&#8230;followed by a space and then followed by a boolean&#8230;&#8221; should be &#8220;&#8230;followed by a space and then followed by an integer number&#8230;&#8221;;<br />
5. In the summary, &#8220;%2 for new line&#8221; should of course be &#8220;%n for new line&#8221;.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
