<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="https://kamilborys.com/feed_style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <tabi:metadata xmlns:tabi="https://github.com/welpo/tabi">
        <tabi:base_url>https://kamilborys.com</tabi:base_url>
        <tabi:separator>
            •
        </tabi:separator>
        <tabi:about_feeds>
            This is a web feed, also known as an Atom feed. Subscribe by copying the URL from the address bar into your newsreader. Visit About Feeds to learn more and get started. It's free.
        </tabi:about_feeds>
        <tabi:visit_the_site>
            Visit website
        </tabi:visit_the_site>
        <tabi:recent_posts>
            Recent posts
        </tabi:recent_posts>
        <tabi:last_updated_on>
            Updated on $DATE
        </tabi:last_updated_on>
        <tabi:default_theme>dark</tabi:default_theme>
        <tabi:post_listing_date>date</tabi:post_listing_date>
        <tabi:current_section>Java</tabi:current_section>
    </tabi:metadata><link rel="extra-stylesheet" href="https://kamilborys.com/skins/amber.css?h=f8925a89cfb5bc099f43" /><title>KamilCase - Java</title>
    <link href="https://kamilborys.com/tags/java/atom.xml" rel="self" type="application/atom+xml"/>
    <link href="https://kamilborys.com/tags/java/" rel="alternate" type="text/html"/>
    <generator uri="https://www.getzola.org/">Zola</generator><updated>2018-02-18T19:15:03+00:00</updated><id>https://kamilborys.com/tags/java/atom.xml</id><entry xml:lang="en">
        <title>Some are more equal than others</title>
        <published>2018-02-18T19:15:03+00:00</published>
        <updated>2018-02-18T19:15:03+00:00</updated>
        <author>
            <name>Kamil Borys</name>
        </author>
        <link rel="alternate" href="https://kamilborys.com/blog/some-are-more-equal-than-others/" type="text/html"/>
        <id>https://kamilborys.com/blog/some-are-more-equal-than-others/</id>
        <summary type="html">
"And to avoid the tedious repetition of these words: is equal to: I will set as I do often in work use, a pair of parallels, or Gemowe lines of one length, thus: =, because no 2 things, can be more equal."
-- Robert Recorde, The Whetstone of Witte (1557)

public class Equality {
	public Equality() {
		Integer a1 = 100, a2 = 100;
		Integer b1 = 200, b2 = 200;
		if (a1 == a2) System.out.println(&quot;a1 == a2&quot;);
		if (b1 == b2) System.out.println(&quot;b1 == b2&quot;);
	}
	public static void main(String[] args) {new Equality(); }
}…</summary>
        </entry><entry xml:lang="en">
        <title>Regex prime checker</title>
        <published>2017-10-07T13:26:38+00:00</published>
        <updated>2017-10-07T13:26:38+00:00</updated>
        <author>
            <name>Kamil Borys</name>
        </author>
        <link rel="alternate" href="https://kamilborys.com/blog/regex-prime-checker/" type="text/html"/>
        <id>https://kamilborys.com/blog/regex-prime-checker/</id>
        <summary type="html">This Java snippet uses a regular expression for something way different than they were designed for: a primality check.
public static boolean prime(int n) {
    return !new String(new char[n]).matches(&quot;.?|(..+?)\\1+&quot;);
}…</summary>
        </entry>
</feed>
